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
435
Update data on 'Complete' button click
posted

Hello Expert,

I have a grid that allow user to add new row or update data. However, I want the data post to the Server when the 'Done' button on the row is click. In the other word, I don't want batch update. I could not find any example on your website.

Thank you

Parents
No Data
Reply
  • 17590
    Offline posted

    Hello Phoeng,

    Thank you for posting in our community.

    By igGrid Updating feature uses transactions to log any changes made to the grid. These transactions are kept locally in the browser until the igGrid.saveChanges method is called to send POST request to the server. In regards to this, what I can suggest for achieving your requirement is handling editRowEnded event of the Updating feature. This event if fired after end row editing. There you could call the saveChanges method. For example:

    features: [
        .
        .
        .
                    {
            name: "Updating",
         editRowEnded: function(evt, ui){
          $("#grid").igGrid("saveChanges");
         },
                       .
           .
           .
           .
                    }
       ]

    I also believe the you will find the following article from our documentation helpful:

    Updating Overview(igGrid)

    Please let me know if you need any further assistance regarding this matter.

Children