onEditorChange is suppressing the button click event.

I am facing an issue in datatable editor, If i remove the content of the editor and click of the button, button click doesn't fire. Please have a look at code snippet
Please suggest the solution for this behavior.

Expectation: Delete the content from the editing column (Reason column as per the snippet) and click on either of the button (Apply all or Apply empty). Data has to reflect in the grid.

Ranjith G.


  • edited August 2017


    In fact, the button click event fires as expected. But at the same time, button click causes editor blurring, which in turn updates the Datatable with the current editor value. And it may happen later than a custom value is set.

    To prevent this collision, you need to call the Datatable's editStop() method to close the editor and apply its value before the custom logic runs:

    function onApplyEmpty(){    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion