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
80
igGrid insert and update data
posted

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

  • 80
    Offline posted

    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