jzzh
#1
Grouping by status works perfectly as described here:
https://docs.dhtmlx.com/gantt/desktop__grouping.html#groupingtasks
I also want to group by the task owner, but this is not a static list of keys.
Instead the list can be any of the 8000 persons in the database.
Can this be done?
Are there any examples how to do it?
Thanks,
Jochen
Hello,
You can pass the list of owners to the serverList
method, which allows you to update it dynamically:
gantt.serverList("owner", ownerList);
function groupBy(groups, relationProperty) {
gantt.groupBy({
groups: groups,
relation_property: relationProperty,
group_id: "key",
group_text: "label"
});
}
function groupByOwner() {
groupBy(ownerList, "owner");
}
Please see an example: DHTMLX Snippet Tool