Update Search after table data change

Update Search after table data change

DchrisDchris Posts: 2Questions: 1Answers: 0
edited February 2017 in Free community support

Hello!

I use data tables for dynamic tables that are edited by users.

Typically I return search data to hidden <td>'s.

After the users edits the table I use ".html()" on the hidden TD's to update the data, but I see that this does not update the search function of DataTables. Searching for the old value still brings row.

Where is DataTables looking for it's search? Is there an object, or an element with data attached that I can update?

Can i place search data here after "initComplete" instead of hidden td's?

Answers

  • DchrisDchris Posts: 2Questions: 1Answers: 0

    So what I have done for now to fix this is re-init the datatable with the "destroy: true" param set.

    I feel this is a little excessive but it works fine for now.

This discussion has been closed.