tags:

views:

224

answers:

2

Hi!

I'm using Grid with "Client Selection" (http://demos.telerik.com/aspnet-mvc-beta/grid/selectionclientside) of Telerik, and my page loads with one of the lines already marked. I wonder how it could activate the event OnRowSelected (on the marked line) when the page loads.

Thanks everyone!

A: 

Go look at the "Controller (example)" tab with the code. In the ActionResult _SelectionClientSide_Orders(string customerID) method you see the line that says customerID = customerID ?? "ALFKI";. This is essentially an if customerID is null, set it to "ALFKI" statement. Based on that, the initial row is selected. So this is actually done server-side rather than client-side.

Jaxidian
A: 

You can check this forum thread.

korchev
Thank you! I'll check it.
Kira