Support Forum
Hi,
I'd like to implement grouping in the Gantt, but struggling how to do this. From the documentation I see it's a Grid feature and not a Gantt feature, so adding it to gantt.features does not seem to do anything, neither does adding it to gantt.grid.features.
I'd like it to be changeable via the UI so like this documents: https://www.bryntum.com/docs/gantt/#Grid/feature/Group
Store grouping seems to work though. As an alternative, can this be activated/deactivated by a user command somehow?
Thanks!
I'd like to implement grouping in the Gantt, but struggling how to do this. From the documentation I see it's a Grid feature and not a Gantt feature, so adding it to gantt.features does not seem to do anything, neither does adding it to gantt.grid.features.
I'd like it to be changeable via the UI so like this documents: https://www.bryntum.com/docs/gantt/#Grid/feature/Group
Store grouping seems to work though. As an alternative, can this be activated/deactivated by a user command somehow?
Thanks!
I guess just like the Grid Grouping demo:
https://www.bryntum.com/examples/grid/grouping/
Grouping functionality on the parent nodes on a certain column in a Gantt tree grid . Something like this I've created, grouping on "Object". Iterate through parent nodes, find all unique "Object" codes, create a record for each unique one and add nodes to those as childs:
https://www.bryntum.com/examples/grid/grouping/
Grouping functionality on the parent nodes on a certain column in a Gantt tree grid . Something like this I've created, grouping on "Object". Iterate through parent nodes, find all unique "Object" codes, create a record for each unique one and add nodes to those as childs:
Hi,
The grouping is kind of working now. But ungrouping is not...
I'm iterating through the group tasks, and calling removeChild(record.children, true, true) as described here https://www.bryntum.com/docs/gantt/#Core/data/mixin/TreeNode#function-removeChild.
My goal is to detach all children from the group tasks, then remove the group tasks from the task store to end up with the "ungrouped" set again. But removeChild actually removes the task from the store completely, even with isMove set to true. Should detaching be possible like this, or maybe otherwise?
Thank you.
The grouping is kind of working now. But ungrouping is not...
I'm iterating through the group tasks, and calling removeChild(record.children, true, true) as described here https://www.bryntum.com/docs/gantt/#Core/data/mixin/TreeNode#function-removeChild.
My goal is to detach all children from the group tasks, then remove the group tasks from the task store to end up with the "ungrouped" set again. But removeChild actually removes the task from the store completely, even with isMove set to true. Should detaching be possible like this, or maybe otherwise?
Thank you.