Accentuate Grouped Task

4 posts, 0 answers
  1. Eric
    Eric avatar
    48 posts
    Member since:
    Jul 2012

    Posted 23 Jul 2012 Link to this post

    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. 
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Jul 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Eric
    Eric avatar
    48 posts
    Member since:
    Jul 2012

    Posted 25 Jul 2012 Link to this post

    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
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 25 Jul 2012 Link to this post

    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.

Back to Top