is there a method to reset datatable ?
is there a method to reset datatable ?

even i refresh a page, table still remember all the things i did in previous, like all checkbox still checked , pagination still the same page not first page, is there a option to fix this ? i want fresh start everytimes it reload
.
Another question, is there any methods to checked checkbox only in current pagination? when i press checked all, all checkbox including other pages also checked, i don't want this and is it possible to checked only current pagination and when u moving to next page, you won't see the checkbox being checked anymore?
This question has an accepted answers - jump to answer
Answers
Not here. I only have this when I use state saving. Are you using state saving? If so don't use it. If you are not using it and can't fix it please post a test case as per the forum rules.
https://datatables.net/reference/option/stateSave
You can use "rows()" with "page: current" like in here:
https://datatables.net/reference/api/rows()
https://datatables.net/reference/type/selector-modifier
You can use the "page" event and make sure everything is unchecked when the user pages through the data.
https://datatables.net/reference/event/page
for First question: after i check the code, there is "bstatesave" in my code, so i removed it and work like perfectly fine, i realy appreciate this, thank you
.
for Second question, i still have no ideal how to control checkbox in current page
i use checkbox from here :
for Last question, i tried call with this but seem like nothing work:
For last question , i found solution, everything work fine , so only second question left
oh, just got new piece of knowledge from last answer , so second question solved now, thank you
, i'm using this
Glad you got it working!! but the code I posted on this was just to show the syntax. It is not relevant for your use case. Probably better to use just this in case that works for you.
Thanks
working like a charm