Can I immediately have DT refresh after an inline edit of a cell?

Can I immediately have DT refresh after an inline edit of a cell?

boicenetboicenet Posts: 47Questions: 12Answers: 1

I have inline editing enabled. When I change the value of a cell can I force the DataTable to immediately refresh without the user having to click on a different row? For example, the editable cell on the DT is a YES/NO dropdown list. When a user changes the value from YES to NO, I'd like the DT to immediately refresh. -Thank you.

Answers

  • kthorngrenkthorngren Posts: 21,591Questions: 26Answers: 5,004

    I haven't used a dropdown with inline editing but have used checkboxes. For the checkboxes to immediately update their columns need to be excluded from inline editing. Maybe the same technique will work with dropdowns.

    Kevin

  • boicenetboicenet Posts: 47Questions: 12Answers: 1

    Kevin, thank you for the suggestion. I'll give that a try.

  • allanallan Posts: 63,889Questions: 1Answers: 10,530 Site admin

    The other way to do this is to attach a click or change event listener to the input elements (field().input()) which will call the submit() method.

    Allan

This discussion has been closed.