Can't select after reload
Can't select after reload
Hossam_Aly
Posts: 1Questions: 0Answers: 0
when I reload the page I want to keep selection
Every time I reload the page the selected row become unselected
This discussion has been closed.
Replies
look at https://datatables.net/reference/option/stateSave use the callbacks to add the id of the selected row(s) to the state object and reset the selected rows on reload.
If you have row ids available, use
rowId
to tell DataTables where to find the id. That way Select will automatically select the rows after you doajax.reload()
.Allan