dhtmlGrid expand/collapse state of groups

Hi,

I’m trying to save the state of expanded/collapsed groups on a regular grid (not a tree grid) and I can’t seem to find any methods that reveal whether or not a group is collapsed. Is there some kind of group item that keeps track of this, or is this not possible?

Thanks
-njohn

Unfortunately there is no any api that can help you to get the state of the groups in the grid.

Is there at least a way to get a list of the groups and possibly iterate through them?

collectValues() method can help you to get all possible values in the column (all groups in your case)
So to get the state of the group you my use the following method:
state=mygrid._groups[val].state
state==“minus” - a group is expanded
state==“plus” - a group is collapsed