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?
Ya, sorry I was lazy and figured I'd just copy and paste so I didn't even look at it to verify it followed the right rule-set.
Thanks for fixing!
Ah! We'll take care of the misspelling in the code samples (only 3 of them are affected).Note that even if the code sample doesn't work out (which is sad :( ), you can always default to the knowledge that we are using the jQuery event namespacing convention, thus an event handler binds to an event whose name follows the pattern:(<control or feature> + <eventname>).toLower()which means that igGridUpdating's rowDeleted event has to be iggridupdatingrowdeleted. All the best,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.
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