问题
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