Count of selected rows.
Count of selected rows.
ArunRahul
Posts: 16Questions: 4Answers: 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.
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.
This discussion has been closed.
Replies
Allan
Allan