How to get the sorted list?!
How to get the sorted list?!
I'm using column sorting (click header to sort) with paging limited to 10 per page.
Each has a unique "data-id" attribute on it.
After sorting changed, I want to get an array of all elements in the NEW ORDER.
I've tried running fnGetNodes, fnGetData and simply binding to the 'sort' event looping over all the table elements but it seems to always return the rows in the original order, not the order that's displaying onscreen.
Can anyone help me out? I want to get the new order of the entire result set in the order that's displaying on screen. Seems like it should be simple! :)
Each has a unique "data-id" attribute on it.
After sorting changed, I want to get an array of all elements in the NEW ORDER.
I've tried running fnGetNodes, fnGetData and simply binding to the 'sort' event looping over all the table elements but it seems to always return the rows in the original order, not the order that's displaying onscreen.
Can anyone help me out? I want to get the new order of the entire result set in the order that's displaying on screen. Seems like it should be simple! :)
This discussion has been closed.
Replies