Event OnLoad on Telerik's grid (client selection)
I开发者_Python百科'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!
You can check this forum thread.
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.
精彩评论