Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ram on May 22, 2009 12:50
open dhtmlx forum
Collapsing a group does not collapse the associated subgrid

Let me first explain the scenario.
I have a grid that displays list of Events; below are the columns of the grid:-

Event Id, Event Name, , #Participants, Event Date, Time From, Time To, Location.
The events grid is Grouped By - Event Id column(which is hidden).

The Third Column (with the <Blank> Header), is where we have a subgrid, showing the participants enrolled for that event.
Initially all the groups and subgrids are in collapsed mode.

Everything works fine except when I try to collapse an expanded group it would not close the "participants" subgrid. Is there a way to collapse a subgrid when I close its associated parent group?



Answer posted by dhxSupport on May 25, 2009 01:51
Unfortunately we cannot reproduce this issue locally. Please provide us any kind of sample where we can reproduce this issue. You can send example directly to the support@dhtmlx.com.
Answer posted by Support on May 25, 2009 03:31
It pretty hard to detect all subgrids related to the some group ( not really hard, but requires a lot of code ) so you can simple call
            grid._collapsMonolite();
It will collapse all sub-grids|sub-rows in the grid.