Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82109

Why is _fnRowDeselectAll called when paging?

$
0
0
We have a table using DataTables and TableTools, getting each page of data from the server. If we select items on one page, then goto another page, the items selected on the first page are no longer selected. I'm trying to implement this in a fairly straightforward way - update an array with info about the selections/deselections using fnRowSelected and fnRowDeselected.

It works fine, with one crucial exception - every time I goto another page, _fnRowDeselectAll is called, which loops through the built-in collection of selected objects (this.s.select.selected), calling _fnRowDeselect on each one, effectively undoing my selections.

Is this the default behavior? Why? Is it possible to override? If I could just tell DataTables/TableTools to not do this on each page change, I'd nearly be done with my task.

Viewing all articles
Browse latest Browse all 82109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>