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?
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
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan