last record in table being selected after server side pagination response
last record in table being selected after server side pagination response
ianmann56
Posts: 3Questions: 1Answers: 0
If I have one or more rows selected when I navigate to the next page in a server side processed table, The last record on the new page is automatically selected. If I don't have any row selected though when I go to next page, it is fine.
I am positive that it's not selected by my code as the only time I manually select rows through the data table API is not being called.
Why is it automatically selecting the last row? How can I stop this?
This discussion has been closed.
Answers
Without seeing what you are doing its hard to say. I put together this simple server side processing test case. Once the table is loaded it uses the Select extension to select a couple rows. Moving to another page does not select any rows.
http://live.datatables.net/zifuroto/1/edit
Maybe you can update the test case to show your issue so we can help debug.
Kevin
Here's my initialization.
I don't think the problem has to do with your initialization. What we need to see is a test case showing the issue so we can help. Can you post a link to your page instead?
Kevin
It's all local development on my dev machine.
Ok. If you can't update the test case with the code you use to select rows can you post it here?
Kevin