Navigate to row's specific page

Navigate to row's specific page

bsoddybsoddy Posts: 2Questions: 0Answers: 0
edited March 2013 in General
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

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    edited March 2013
    You might be interesting in this plug-in: http://datatables.net/plug-ins/api#fnDisplayRow - it is node based, but it might give you a starting point.

    Allan
  • bsoddybsoddy Posts: 2Questions: 0Answers: 0
    Works fantastically!

    Included example of implementation: http://live.datatables.net/aweven/2/edit
This discussion has been closed.