Hi,
We are trying to use the group by feature in the gantt chart to group the tasks by a column that we defined in the columns config. We are able to get the groups shown on the grid and chart but for the group row in the grid the rest of the columns are showing the data as undefined,
rather we want those columns to be empty for the group rows(the row which has the group header).
And also if certain groups does not have items, those are shown with the same style as items instead of as a group, can we control this? Is there a way to hide this group at all?
Can we apply the same bar color to all the bars(tasks) under a given group.
I want all my Group1 tasks to have one color on the bars(including the bar of the group), and another color for group2 tasks etc…
Currently this has to be handled in column templates. Currently they does not handle an undefined value, so it’s promted as ‘undefined’.
If you define a template, you can do a simple check like following:
I can’t give you an answer right now, need to check it on test data.
Btw, when possible, please use the snippet tool in addition to questions - docs.dhtmlx.com/gantt/snippet/ (use ‘Share’ button to get a permanent link to the demo).
Checking and doing necessary tweaks on a ready sample would be much faster than creating a configuration from our side.
This should be possible using a class template docs.dhtmlx.com/gantt/api__gantt … plate.html
Inside a template you can check the task and return a correct css class depending on it’s group
For the future posts we will make use of the snippet, and post the query wherever possible.
I would like to check for the first point, is there an easiest way to fix it in dhtmlxgantt.js file, such that it returns blank if the value is undefined? as we don’t want to right the templates just for this purpose, if it can be handled in one single place.
Thanks in Advance
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan