Keep in DOM paginated elements
Keep in DOM paginated elements
Tomp1
Posts: 1Questions: 0Answers: 0
Hi.
During pagination, Datatable remove from DOM rows that are hidded.
For developpement reasons i need to always have in DOM all elements contained by Datatable (input elements in hidded rows for example when i submit a form).
Is there a way to do that ?
Thanks
This discussion has been closed.
Replies
Datatables doesn't know about hidden rows in the table which is probaly why they are over written. Without seeing what you are doing its hard to suggest alternatives. Can you provide a link to your page or a test case so we can help?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Hi @Tomp1 ,
Nope, that's how DataTables does it. The row data is still available through the API (see functions like
rows().data()
for example) - would that be an option for you?Cheers,
Colin