• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2132
  • Last Modified:

set_cancel Object doesn't support property or method

I have added the set_cancel to my function and get this error when it hits it:

Jscript runtime error: Object doesn't support this property or method

Below is my function. I want to cancel it returning to my telerik grid row click event, but just hitting the method generates the above error:

<script language="JavaScript" type="text/javascript">  
function GetDirtyGridRowClickReviewer(sender, eventArgs)  
    var sContinue;  
    if (isDirty == 1) {  
        sContinue = window.confirm("You have unsaved changes. Continue?");  
        if (sContinue != true) {  
            return false;     // cancel so they can save  
    isDirty = 0; // reset if continue  
    return true;  
// --> 

I am calling this function on the rowclick of a radgrid, if that helps:
 grdGrid.ClientSettings.ClientEvents.OnRowClick = "GetDirtyGridRowClickReviewer" 

Starr Duskk
Starr Duskk
1 Solution
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
I checked with Telerik, and the set_cancel is no longer supported in their current versions.
I had to go a different route, instead of cancelling the click if they wanted to cancel, I had to activate the click if they wanted to proceed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now