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

Get the iDisplayStart of a given row

$
0
0
I have a dataTable with hundreds of items with a fixed 50 iDisplayLength option. I need to be able to find what page a specific row is within the loaded nodes.

All I've managed is to get the position, unfortunately that internal row position does not correspond to the row index with the current sorting and filtering.

As an example here on http://jsfiddle.net/VFtQQ/. I can retrieve the position or row #tr4 (position 3) but what I need is the index of the sorted row.

fnGetNodes allows me to get all the nodes as they were passed from the server, is there a way for me to get the nodes with the current sorting options?

Currently my only way would be to be sure that the datatable sorting is the same as my server side array and do the pagination math on the server side.

Viewing all articles
Browse latest Browse all 82115

Trending Articles



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