How to debug Queuing changes in Editor / DataTables

How to debug Queuing changes in Editor / DataTables

divad.thgirbladivad.thgirbla Posts: 36Questions: 14Answers: 1

This is going to be somewhat vague...

I'm trying to implement queuing changes in Editor as described by blog post https://datatables.net/blog/2017-10-24#Local-table-editing. I haven't added code for the Save Changes or Discard Changes buttons yet. At this point, I'm simply trying to get the updates to Editor fields reflected in the DataTable on an onchange() event. I have that working for input fields and datetime fields. I can't get it to work for the selects though. If I change the select value, I can see the redraw() happening because the table row flashes but the old value remains in the table. I've tried stepping through the jquery.dataTables.js code but I don't see anything very obvious as to why a select field value change doesn't update but a text input field does. Is there a key method (or two) in jquery.dataTables.js that I can set a breakpoint at that would help me debug this? Is there code utilizing the API that I should/could be using to force an update to the dataTables cell? Nothing I've tried so far has worked. I assume that it should just work.

We've also implemented the Always visible editing panel from blog post https://datatables.net/blog/2017-06-30 so our Editor window is always open, sitting on to of the datatables table. That's why I can have the Editor field's onchange() event immediately trigger the "save" event that updates the table.

This question has an accepted answers - jump to answer

Answers

  • divad.thgirbladivad.thgirbla Posts: 36Questions: 14Answers: 1
    edited June 2020 Answer ✓

    Never mind. I found my problem.

    This can be closed.

  • allanallan Posts: 61,663Questions: 1Answers: 10,095 Site admin

    Thanks for posting back - good to hear you've got it sorted.

    Allan

This discussion has been closed.