Getting next index on sorted table
Getting next index on sorted table
Hey all
Any ideas how i can get the next row index given the one that is meant to be before it in a sorted table?
I've searched the forums an checked the api an examples, and cant seem to find what im looking for.
I'm trying to get the next index in my data table, given the index before. The only problem is that all columns are sortable and therefore I cant seem to get the next index, rather it gives me the next index (oldIndex + 1) in the unsorted table.
I've tried using what was shown in the" DataTables row numbers example" but as i'm using scrolling but also need to have the table headers, all this seems to do is mess up my columns and show 2 headers.
Regards and thanks for any help
Joey
Any ideas how i can get the next row index given the one that is meant to be before it in a sorted table?
I've searched the forums an checked the api an examples, and cant seem to find what im looking for.
I'm trying to get the next index in my data table, given the index before. The only problem is that all columns are sortable and therefore I cant seem to get the next index, rather it gives me the next index (oldIndex + 1) in the unsorted table.
I've tried using what was shown in the" DataTables row numbers example" but as i'm using scrolling but also need to have the table headers, all this seems to do is mess up my columns and show 2 headers.
Regards and thanks for any help
Joey
This discussion has been closed.
Replies
(looping with aiDisplay will return the filtered sorted set)
Allan