Pagination - Text Input Plugin - set page on load.
Pagination - Text Input Plugin - set page on load.
kadaba
Posts: 1Questions: 0Answers: 0
Hello,
DataTable - wonderful work.
In course of development I have encountered an issue. (At least for me now..)
I am using the text input pagination plugin. Everything works well except I would like to achieve this.
On load of the page I would want to find a particular record and get that particular page to view.
The records have id on the TR.
I tried different approaches:
1\ After the table is drawn(fnInitComplete) I tried to find this record (position) and try to set the page.
Since the datable hides some of the rows it does not find this record (it might be in 2 or 3 page)
2\ I tried to hack the plugin a little bit by trying to set the current page. Even though I have the data through the aoData and could find the row
the index of this row is different from the one which is displayed (may be because of sort?)
I might have overlooked some parameter of some way of setting this. I would be glad if I could get some help or direction.
Best,
kadaba
DataTable - wonderful work.
In course of development I have encountered an issue. (At least for me now..)
I am using the text input pagination plugin. Everything works well except I would like to achieve this.
On load of the page I would want to find a particular record and get that particular page to view.
The records have id on the TR.
I tried different approaches:
1\ After the table is drawn(fnInitComplete) I tried to find this record (position) and try to set the page.
Since the datable hides some of the rows it does not find this record (it might be in 2 or 3 page)
2\ I tried to hack the plugin a little bit by trying to set the current page. Even though I have the data through the aoData and could find the row
the index of this row is different from the one which is displayed (may be because of sort?)
I might have overlooked some parameter of some way of setting this. I would be glad if I could get some help or direction.
Best,
kadaba
This discussion has been closed.