Navigate to row's specific page
Navigate to row's specific page
I've been attempting to include a feature which, when given data specific to a row, is capable of navigating to that row's page.
Ideally I'd like this to be done by finding the row from the complete markup and providing the row as an argument to some function on the table. Initial approaches have been centered around the idea of obtaining the row's sorted index and then calculating based on the entries per page which page needs to be selected.
I have not yet been able to obtain the complete row index given the current sorting of the table. So far I have only been able to get the pre-sorted index from the complete DOM, or the index of a given row on the current page.
Is it even possible to obtain the complete row index given the current sorting of the table? If not, how would I go about displaying the correct page?
Context:
DataTables live: http://live.datatables.net/aweven/edit#source
DataTables debugger: http://debug.datatables.net/igivam
Ideally I'd like this to be done by finding the row from the complete markup and providing the row as an argument to some function on the table. Initial approaches have been centered around the idea of obtaining the row's sorted index and then calculating based on the entries per page which page needs to be selected.
I have not yet been able to obtain the complete row index given the current sorting of the table. So far I have only been able to get the pre-sorted index from the complete DOM, or the index of a given row on the current page.
Is it even possible to obtain the complete row index given the current sorting of the table? If not, how would I go about displaying the correct page?
Context:
DataTables live: http://live.datatables.net/aweven/edit#source
DataTables debugger: http://debug.datatables.net/igivam
This discussion has been closed.
Replies
Allan
Included example of implementation: http://live.datatables.net/aweven/2/edit