Kira
Kira

Reputation: 628

Event OnLoad on Telerik's grid (client selection)

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!

Upvotes: 3

Views: 2095

Answers (2)

Atanas Korchev
Atanas Korchev

Reputation: 30671

You can check this forum thread.

Upvotes: 0

Jaxidian
Jaxidian

Reputation: 13511

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.

Upvotes: 0

Related Questions