This is a migrated thread and some comments may be shown as answers.

Accentuate Grouped Task

3 Answers 57 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 24 Jul 2012, 12:51 AM
Hello,
  When by tasks are groups under a single task, it is very difficult to tell that they are grouped together.  In fact, the only way you know is that they are indented on the left.  I'm looking to make the difference more obvious.  Ideally this would be colored shading behind each task that indicates the shape of the group.  See attached image for what I am trying to do.  The only way I could think of to do this would be modify the event container styles and and rectangles each group.  I see several problems with this approch:

The event container seems to have little correnspondance the gantttask in that container.  Whenever the structure of the tasks changes, the gantttask would possibly get placed with a different container.
The recursive nature of the tasks means the rectangles would have to be generated in code-behind, because there could be arbitraily many of them.

I think a more practical solution would be just drawing a single rectangle around each group of tasks, and set its fill.  This still has the issue needing to be recalculated every time the chart has changed.

I was wondering if you guys had any suggestions as to the best way to go about doing this?

Thanks,
Eric. 

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Jul 2012, 12:48 PM
Hi Eric,

Currently this is not easily doable, but we are planning to add a feature that will allow you to draw any kind of decorations you like and you will be able to draw these rectangles easily when this feature is ready. Unfortunately most probably we will not be able to ship it with the 2012 Q3 release.

Regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eric
Top achievements
Rank 1
answered on 25 Jul 2012, 05:17 AM
Hello,

How about just a way to programmably change the task color (or hilighlight color) of individual tasks.  Even that would help a lot.  As a side note, a way to get the event container from the gantt task would be helpful.  Looking at the source though, I have little hope for that being easy.

Thanks,
Eric
0
Miroslav Nedyalkov
Telerik team
answered on 25 Jul 2012, 10:42 AM
Hi Eric,

If you want to set different colors to different task you may use either the highlighting feature of the GanttView, demonstrated in this example (it can be customized much more than demonstrated in the example) or to create a custom style for the EventContainer and to bind their background to some property of their GanttTask (which in particular could be calculated from the Parent and common for all siblings). For using different colors for different tasks, please refer to the attached example.

Hope this helps.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Eric
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Eric
Top achievements
Rank 1
Share this question
or