RowSelected, RowSelecting, GetSelectedRows() can't return rows

Hi,

I am using latest build.  Using any of these events:

public void OnRowSelect(Syncfusion.Blazor.Grids.RowSelectEventArgs<Node> args)

public void OnRowSelecting(Syncfusion.Blazor.Grids.RowSelectingEventArgs<Node> args)

the args.Row is always null.

Same thing if I try to get Treegrid.GetSelectedRows().. Always return null.

Please help.

thanks,

ma

1 Reply

PS Pon Selva Jeganathan Syncfusion Team February 17, 2021 06:09 AM UTC

Hi Martin,   
 
Thanks for contacting syncfusion forum. 
   
Query: RowSelected, RowSelecting, GetSelectedRows() can't return rows 

We have validated your query, you are using  the GetSelectedRows method to get the selected row data. we are going to deprecate the GetSelectedRows method in the treegrid.  So we suggest that you use the GetSelectedRecords method of treegrid to fetch the selected row data programmatically. Please refer below API documentation: 

And also you can get the selected row data in args.Data of the Row select/deselect event args.  

Please refer to the below screenshot: 
 
 
 
 

Please refer to the below sample, 
 

Kindly get back to us for further assistance.

Regards,  
Pon selva   
 


Loader.
Up arrow icon