I have a groupped grid. All the items are collapsed at the start. I want to achieve the functionallity that only one group can be expanded at once. My idea was the following: On group click collapse all the groups and expand the clicked group again. But I am stuck at the first part (collapsing all the groups). I get the following error in browser console:
Error:
Uncaught TypeError: Cannot call method 'onRefresh' of undefined .... Grouping.js
Code:
onGroupingGroupclick()view, node, group, eOpts){
view.collapseAll(); //error
}
If my approach is not ok for some reason I would kindly ask for any alternatives...