扩展/折叠所有主行devexpress mvc

时间:2014-06-11 12:55:16

标签: asp.net-mvc devexpress

我正在使用此链接http://demos.devexpress.com/MVCxGridViewDemos/MasterDetail/MasterDetail来开发主网格和详细信息网格。 现在,我想在点击按钮时展开/折叠所有主行。

1 个答案:

答案 0 :(得分:1)

这可以通过使用ASPxClientGridView.CollapseAllDetailRowsASPxClientGridView.ExpandAllDetailRows客户端方法

来实现

您可以按照发布的here

示例进行操作

(确保在客户端呼叫中正确使用GridView名称)