Reputation: 628
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
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