Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Cancel in rowDeleting event
posted

Hi,

How to cancel of the delete operation in RowDeleting event?
I tried (without success) to:

$(".selector").igGrid({

    features : [

        {

                      rowDeleting: function(evt, ui){

                                return false;

 }

        }

    ]

});

 

Thanks,

Dusan.

Parents
No Data
Reply
  • 23953
    Suggested Answer
    Offline posted

    Hello Dusan,

    You can try with this code:

    $(".selector").igGrid({
    features : [
    {
    name: "Updating",
    rowDeleting: function(evt, ui){
    return false;
    }
    }
    ]
    });

    The rowDeleting handler should be in the Updating feature configuration object literal. Also if you're using the igGridUpdating.deleteRow API the rowDeleting event won't fire, because API methods do not rise events (this is a design decision).

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc. 

Children
No Data