Posted 14 April 2018, 8:56 pm EST
Hi,
I am trying to group a TreeView FlexGrid and grouping does not work while I am using ChildItems. Is there a workaround to Group the TreeView Grid?
Thanks
Balaji
Forums Home / Wijmo / General Discussion
Posted by: krish.balaji on 14 April 2018, 8:56 pm EST
Posted 14 April 2018, 8:56 pm EST
Hi,
I am trying to group a TreeView FlexGrid and grouping does not work while I am using ChildItems. Is there a workaround to Group the TreeView Grid?
Thanks
Balaji
Posted 16 April 2018, 7:02 am EST
If I understand correctly you are trying to insert groups into treeView grid.
Now as part of design inserting groups requires grid to insert GroupRow for each group. But when we use treeview grid, GroupRows are used to represent the parent nodes and hence they are not available to be used for representing group, therefore having both(grouping and treeView) at in same grid is not possible.
You can try use FlexGridDetailProvider. It lets you have nested grids so you can predefine group as datarows and for each row define corresponding treeview grid.
Refer to following rowDetail example:- http://demos.wijmo.com/5/Angular2/RowDetails/RowDetails/
You can also refer to the following example:-https://stackblitz.com/edit/angular-np1239?file=app%2Fapp.component.html