mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

get Grouping state #1176

Open evagelos21 opened 6 years ago

evagelos21 commented 6 years ago

Hi to all, Can I have the state of grouping? for ex if the grid is in expand or collapse mode? thanks in advance

6pac commented 6 years ago
var dv = new DataView;
...
var groups = dv.getGroups();
for (var i = 0, l = groups.length; i < l; i++) {
    group = groups[i];
    Console.Log(group.value + ":" + group.collapsed);
}

untested, but should be close to the mark