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

Count of selected rows.

$
0
0
In my code I am using two custom(not table tools provided) buttons which selects and deselects all the rows in table.I am calling fnSelectAll() and fnSelectNone() respectively for those button click callbacks. Also I can induvidually select multiple rows in the table.
Is there a way/technique through which I can get the count of selected rows ? Could any one help me on this ?
I tried to implement it with one variable which gets incremented when I select any row (I am incrementing the count at fnRowSelected callback) and gets decrement when I de-select any row (I am decrementing the count at fnRowDeselected callback). As I am implementing custom buttons to select and deselect all I tried the same in those button click callbacks also . But it didn't work.

Viewing all articles
Browse latest Browse all 82440

Trending Articles



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