开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜