jump to page with record / fnReloadAjax() + keep page

jump to page with record / fnReloadAjax() + keep page

nm_alexnm_alex Posts: 26Questions: 0Answers: 0
edited May 2011 in General
Hi!

In short: How do I jump to the page where a specific record is listed? Each record as a unique id in the (hidden) first column of each row.

Long story:
There is lots of posts about this in this board, but unfortunately, I was not able to excerpt the answer to my question. So here it is:

I refresh a table using fnReloadAjax(). I also have selectable columns - the hard way, because I use server side, too (that is: this one with only one possibl eselection: http://datatables.net/examples/api/select_row.html).

So, when a refresh is done, there is two possibilities:
a) the (single) record was changed and I want to reflect the new values in the table. I also want to load any other update that might have been caused by other users changing the data (no need to evaluate this point any further here, it would be OT).

If this happens, I want to jump right to the page where the selected record resides. How do I do that? I know the unique id of the record, that is always the first hidden column of a row.

b) the single record was deleted.
Basically, what happens now is what I want for this case: jump to the first page (nb: I'm removing the slection marker, so no worried about that).

Kind regards,
Alex
This discussion has been closed.