Hi,
I need to get selectedRows at client side after a postBack, How to do this please ?
Hi gtarek,
You can use the Initialize client-side event of the grid to access the currently selected row(s). In order to do that you could use :
sender.get_behaviors().get_selection().get_selectedRowsResolved()
That will return the collection of selected rows. To get the first row, for instance, you can use:
sender.get_behaviors().get_selection().get_selectedRowsResolved()[0]
The sender argument in this case is the grid object itself so that could be substituted with $find("WebDataGrid1") anywhere on the client.
Hope this helps.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://www.infragistics.com/support
Thanks
Please contact me if you need more help with this.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://www.infragistics.com/support
Thanks Petar, this post was very useful!
Gregory
I need to get previous selected row in RowSelectionChanged event in client side.