Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82439

Correct order of things

$
0
0

Scenario 1:-
1. Display DT with default filter.
2. Apply additional filter
3. Display results
4. Clear the filters and go back to step 1

Scenario 2:
1. Display DT with default filter.
2. Apply additional filter
3. No results returned
4. Clear the filters and go back to step 1

What should be the correct order of calls to the API to cater for the two scenarios as there seems to be number of combinations available i.e. destroy clear empty re-initialise etc.

e.g. If I do this
table.clear();
$('#demotable').empty();
table = $(tableName).DataTable({...});

The DT is not displayed.

I'm also using dynamic column creation.


Viewing all articles
Browse latest Browse all 82439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>