can i keep selected rows when i go to another page and add selected row to up data-table rows for next page ?
because i want to see selected row in all time ...
This question has an accepted answers - jump to answer
Part one: use the select row and unselect row events to grab the data associated with all of the selected rows and store them in sessionStorage in the client.
Part two: add logic to add pull out the data from sessionStorage and append it to the data on the new page as part of the data table initialization and reselect them.
This assumes that the data sets have the same structure from page to page. I would also want to make sure each data structure has a unique identifier to avoid duplicate rows.
If the same dataset are the same from page to page, all you would have to do is store the array of unique identifiers.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.