In SlickGrid, how do I collapse grouping via javascript [closed]

点点圈 提交于 2019-12-12 01:09:42

问题


I want to apply grouping in SlickGrid. I want collapse them via javascript.

This is my script http://pastebin.com/MbXgQ22Y (Dead link)

dataView.collapseGroup(0);
collapseAllGroups();

But it isn't working.


回答1:


You only need 1 line of code to collapse them which is: dataView.collapseAllGroups() Make sure that your version of SlickGrid is not too old as this function of collapsing all was implemented last month...



来源:https://stackoverflow.com/questions/15920700/in-slickgrid-how-do-i-collapse-grouping-via-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!