Setting a callback on row selection change

Hi, I'm using GridComponent on React JS.

I want to be able to enable/disable certain Toolbar items based of how many rows are currently selected. So I thought I'd need a row selection callback event, in order to fire the toolbarModule.enableItems() function from here, at every row selection change.


But the problem is I can't find any selection callback. Can you help me on achieving such result in this scenario?


Thanks in advance,

AP


1 Reply

BS Balaji Sekar Syncfusion Team July 8, 2021 12:52 PM UTC

Hi Antonio, 

Thanks for contacting the Syncfusion support. 

As per your query we suspect that you need to perform the enable/disable action in the toolbar item based on row selection so, we suggest you to use rowSelected event of Grid it will help to achieve your requirement. 

Please refer the below Help Documentation for more information.  


Regards, 
Balaji Sekar. 


Loader.
Up arrow icon