I have a grid that has deleting enabled. The button shows and you can delete rows from the grid.
However, the rowDeleted and rowDeleting events do not fire when I hook them up as per the documentation like so:
$(document).delegate('#grid', "iggridupdatingeditrowdeleted", function (evt, ui) {
debugger;
}
I've verified that the selector ('#grid') returns a valid array with one item in it.
The esact same code but with the XXXeditrowended event on it works fine.
Ideas as to why this isn't working?
Hi,I think that the problem is caused by a typo in the call to delegate() - it should be
$(document).delegate('#grid', "iggridupdatingrowdeleting", function (evt, ui) { debugger; })
All event names are listed in the igGridUpdating's API reference:
http://help.infragistics.com/jQuery/2012.1/ui.iggridupdating#eventsLet me know if you encounter any other problems.Regards,Borislav
FYI, I got what I had directly from the documentation here: http://help.infragistics.com/jQuery/2012.1/ui.iggridupdating#events
You'll note that it's not correct on that page.
Thanks for giving me the proper syntax!
Hello,
You can also handle event while activating the feature as shown below:
features: [{name: "Updating",enableAddRow: false,editMode: "none",enableDeleteRow: true,rowDeleting: function (evt, ui) {debugger;},
I hope this helps.