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

Sort the datatable only of rows with available data not whole table

$
0
0

Iam firing an event to get API on the drawcallback after the datatable got data list. Also what i does that it keep check if current showed page has loaded and if the column data is loaded and column (say A) value is updated, it will sort accordingly by that column . Initially on datatable A column has value of zero.
Below is the code which Iam using for sorting.
let table = $('#comparison-table').DataTable();
let page_order = table.order();
table.order(page_order).draw(false);

My issue is once i click the sorting icon, above code runs again after the order.dt events. So, is there a way to sort by only available data.


Viewing all articles
Browse latest Browse all 82033

Trending Articles



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