Inline table with just one server call for updating the records

Inline table with just one server call for updating the records

chiragsagichiragsagi Posts: 6Questions: 2Answers: 0

We are implementing editable table using Inline editing for a functionality in which we will modify the data and click on a button(Save) which will update the records on the server.
In all the examples provided for Inline editing, as soon as we update any cell the server call is performed and record is updated.
Can we implement a inline table with just one server call to update the records?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Yes, that's the default behaviour for Editor. You could try queuing the changes as discussed in this blog post: https://datatables.net/blog/2017-10-24

    Colin

  • chiragsagichiragsagi Posts: 6Questions: 2Answers: 0

    Thanks for the reply, but the solution you provided is for full row editing. Does in-line editor support the Queuing changes feature as well.

  • chiragsagichiragsagi Posts: 6Questions: 2Answers: 0

    When queuing feature is implemented with in-line editing, the changes are reverted when we tab out of a cell, is there a way to implement queuing with in-line editing

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    Yes, the queuing used in the blog post will work with inline editing as well.

    the changes are reverted when we tab out of a cell, is there a way to implement queuing with in-line editing

    Are you using onBlur: 'submit' like in this example: https://editor.datatables.net/examples/inline-editing/options.html ?

    Allan

  • chiragsagichiragsagi Posts: 6Questions: 2Answers: 0

    yes, i am created my local version using the example shown here: https://editor.datatables.net/examples/inline-editing/options.html, but when i tab or select any other cell, data is reverted to its original state .

  • chiragsagichiragsagi Posts: 6Questions: 2Answers: 0

    Hi Allan,
    Can you point me to an example for the queuing feature is implemented with in-line editing

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    As Allan said, that blog post documents how to do it, and it will support inline editing. Could you link to your page, please, that'll help us understand the issues,

    Colin

This discussion has been closed.