Automatically sorting apply on all tables.
Automatically sorting apply on all tables.
hassanuos
Posts: 1Questions: 1Answers: 0
I have 10 tables in different ui tabs and when i applied the column sorting on single table in tab. On each table i got that sorting each column rest of the 9 tables. I just want sorting on that table which i sort the column not all. thanks in advance
This discussion has been closed.
Answers
Are you using a function to config your DataTables? Where you pass in a table id and run your config? And you are using this to default sort your table https://datatables.net/reference/option/order
If you are, then you will need to remove that option from your config, store each DataTable to its own variable, then for the table you actually need that sort performed use the following https://datatables.net/reference/api/order()