How to prevent editor.submit() on inline editing until custom button is clicked?

How to prevent editor.submit() on inline editing until custom button is clicked?

Hello,

We are using inline editing to enter data into a row, and we wish to modify the default behavior to only make the ajax post when a button in the last column is pressed? Currently when an ajax post is invoked upon tabbing through each cell which is not what we want. We would like to invoke the presubmit() and submit() events only when the button in the last column is clicked or the enter key is pressed? See attached screenshot for visual of the datatable. Thank you in advance

Answers

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

    Hi @Turlock Irrigation District ,

    That's not possible as such, as inline editing expects each field to be validated when being edited. That said, this thread here may help - it discusses the same issue and also has a solution (though slightly messy),

    Cheers,

    Colin

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Another approach is the one introduced in this blog post. There it has a global queue for the whole table, but it would also be possible to split it up so there is a queue per row that you can use to submit the data on a row by row basis.

    As Colin says, I'm afraid that this is not a built in feature in Editor at this time. It requires a bit of custom code.

    Regards,
    Allan

This discussion has been closed.