Hello, I try to connect a backend to the igGrid using javascript.
Therefore I would like to differentiate between an update and an append case.
Updating is working well through using:
$("#table").on("iggridupdatingeditrowending", function (evt, ui) {self.update(ui.values)});
When pressing the + (Add) button on the grid same event occurres
(When reading the documentation I thought the iggridupdatingrowadding event will be called)
Is there a possibility to differentiate the two cases?
Regards
Karl-Heinz
Hello Karl,
Thanks for posting in Infragistics forum.
In the event you are using "editRowEnding" there is an argument in "ui" parameter called "rowAdding".
That is a boolean argument which is true if the edit mode is for adding a new row and false otherwise.
Also, there is "update" argument which tells whether any value has been changed.
Please check this for further information.
Please do not hesitate to contact me if you have any additional questions or concerns.
Best Regards,
Martin Dragnev,
Infragistics