Dynamically programatically select a row with pagination
Dynamically programatically select a row with pagination
Hi Allan,
I seen quite a few posts about this topic but they are either Legacy related code or working with scroller.
So I am using pagination and I want to dynamically select a row when the page loads. The use case is that our users will get an email with a link. When they click on the link, it takes them to the page and highlights the row automatically on page load. The link will pass the required information to know which row to select.
What's the best practice here and how do I deal with pagination?
This question has an accepted answers - jump to answer
Answers
Assuming you are using client-side processing you could use the page.jumpToData() plug-in API method.
If you are using server-side processing, you would need to make a request to the server to find out what page to jump to, since the full data set would need to be queried.
Allan
Thanks Allan, I'm able to get to the page (that includes the search row) now. Any best practices on how to dynamically select the intended row on that page?
Nevermind I got it. Added rowId to the datatable and used the row() api