Hello all. We are using the DataGrid in Multi Selection Mode and need to disable a button on the page unless a user has at least one or more items selected (checked).
I have looked at the grid’s addItemClickListener and don’t see where it tells me when an item has been checked. The call back fires when the Item or entire row has been selected but not when a checkbox by itself has been checked. If I could get the current total number of items checked in addItemClickListener, that would work as well.
How can I achieve this?
Thanks Jean-Christophe! This is perfect.
I dug through the whole grid object model but didn’t know MultiSelect and SingleSelect had listeners off of them.
Super handy to know now.
Thanks so much!