我在Telerik的“客户端选择”(http://demos.telerik.com/aspnet-mvc-beta/grid/selectionclientside)中使用了网格,并且我的页面加载了一个已经标记的行。我想知道当页面加载时它如何激活OnRowSelected事件(在标记行上)。Telerik的网格上的事件OnLoad(客户端选择)
谢谢大家!
我在Telerik的“客户端选择”(http://demos.telerik.com/aspnet-mvc-beta/grid/selectionclientside)中使用了网格,并且我的页面加载了一个已经标记的行。我想知道当页面加载时它如何激活OnRowSelected事件(在标记行上)。Telerik的网格上的事件OnLoad(客户端选择)
谢谢大家!
您可以检查this论坛主题。
请看代码中的“Controller(example)”选项卡。在ActionResult _SelectionClientSide_Orders(string customerID)
方法中,您会看到一条表示customerID = customerID ?? "ALFKI";
的行。这实质上是一条if customerID is null, set it to "ALFKI"
声明。基于此,选择了最初的行。所以这实际上是在服务器端而不是客户端完成的。
谢谢!我会检查它。 – Kira 2010-04-07 17:08:17