Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hector Carmona on Jul 23, 2008 04:44
open dhtmlx forum
Subgrid within a treegrid

Hi! Is it possible to have a subgrid within a treegrid? If so, how can i do it?
Thanks!
Answer posted by Support on Jul 23, 2008 05:05
Technically you can use it in same manner as in plain grid ( just define some column as sub_row_grid), but in existing version subgrids will not react expanding|collapsing branches in master grid , which made them hardly usable.

The common use-cases are
    If you are using same structure on all levels - use treegrid in default mode
    If you need different structure on second level - use grid with subgrids
Answer posted by Hector Carmona on Aug 04, 2008 11:40

What I would like to do is:  a second level with the same structure and a third level with another structure (subgrid). Maybe is possible in plain grid, but how? Can I have a subgrid without headers? Or maybe multiple subrows?

Thanks in advance!

Answer posted by Support on Aug 05, 2008 01:31

Unfortunately it not possible to create such structure with current version of components. 
You can have multiple levels in TreeGrid, but they all share common header. 
Plain grid can have subgrids with different structure, but this functionality oriented on two levels only.