specific color for each type of task

13 posts, 0 answers
  1. Chad
    Chad avatar
    3 posts
    Member since:
    Oct 2007

    Posted 29 May 2012 Link to this post

    I need to be able to color each task on the gantt view independently.  meaning the first item in a series should be blue if it meet a criteria, or red, or green, depending on conditions.  I only see the theming option, which wont accomplish my goal.
    is it possible to color each task seperately?
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 May 2012 Link to this post

    Hi Chad,

    Please refer to the example attached - it demonstrates how to color the task depending on a property of the task, but you could an IValueConverter to implement more complex logic.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. AMO
    AMO avatar
    31 posts
    Member since:
    Nov 2011

    Posted 06 Jan 2013 Link to this post

    Hi ,
    Is this possible in Silverligth.Can you please help out ?I have already posted in the Telerik silverligth  forum ....
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Jan 2013 Link to this post

    Hi Athira,

    You can use exactly the same approach as in WPF - you could just take the code and move it a Silverlight project and it should work.

    Hope this helps.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. AMO
    AMO avatar
    31 posts
    Member since:
    Nov 2011

    Posted 07 Jan 2013 Link to this post

    Hi Miroslav ,

    Thanks for the reply .
    I have posted in the Silverlight forum here :http://www.telerik.com/community/forums/silverlight/ganttview/color-code-for-gantt-view-items.aspx
    I have used the same code as posted here .But the Background doesn't seem to change .Can you please guide me with this ?
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Jan 2013 Link to this post

    Hello Athira,

    I was able to port the project. Please refer to attached zip file, containing both projects - the WPF and Silverlight version.

    Hope this helps.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. David
    David avatar
    4 posts
    Member since:
    Oct 2012

    Posted 04 Feb 2013 Link to this post

    Hi Miroslav,

    I read the latest posts, but I need an ability to color each row task not only the task itself.
    For changing the task i use Template for SummaryContainer, MilestoneContainer and EventContainer (For example : ProgressBar with Colors and percents) and I want to set the
    entire row color only for SummaryContainer.
    How can i change the Color only for SummaryContainer or other type of GanttTask ? i need to change the BorderContainer ?

    Kind Regards,
    Yossi
  9. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 06 Feb 2013 Link to this post

    Hello David,

    As I see you have posted a support ticket for the same issue and we have replied to you in that thread could we continue the discussion there?

    I will post our response from that thread here too in order for it to be available for the community:

    In the current version of RadGanttView control it is not possible to achieve the described behavior for the rows. The reason for this is that currently you cannot pass enough information from the tasks in the rows to the rows themselves in order to customize them based on a specific task.

    We will research the possible solutions to this scenario and we will do our best to implement it as a built-in feature for our future releases of RadControls.

    Kind regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  10. AMO
    AMO avatar
    31 posts
    Member since:
    Nov 2011

    Posted 02 Dec 2013 Link to this post

    Hi ,

    I need to achieve this in a particular situation .The exact requirement is that based on some property value , I need to be able to set the row background of the Task

    What I have done is , added a property in the GanttTask Itemsource .I have modified the control template of Border container and binding this property to the Background of the Border container .

    But , as mentioned here , the binding is not happening .
    Is there any way that this could be achieved or may be any workaround ?


    I am using the 2013 Q1 dlls .

    Thanks a lot....

  11. AMO
    AMO avatar
    31 posts
    Member since:
    Nov 2011

    Posted 02 Dec 2013 Link to this post

    Some update on the requirement .

    Attached image describes the requirement .

    I have some dates on the Grid part of the control and the timeline part on the right side contains some time frame values that are plotted .
    Now I need to be able to easily distinguish the dates may be by adding a border after a particular set of date values or may be by assigning some background to the rows with the same date value .

    I cannot use the background of the EventContainer as I am already using it for some other feature .(to distinquish a task across multiple dates)

    Please let me know if this can be done ASAP .Thanks in advance !

  12. AMO
    AMO avatar
    31 posts
    Member since:
    Nov 2011

    Posted 02 Dec 2013 Link to this post

    Forgot to mention ...working on Silverlight control not WPF
  13. AMO
    AMO avatar
    31 posts
    Member since:
    Nov 2011

    Posted 02 Dec 2013 Link to this post

    Hi ,

    Any thoughts on this ???
    Please help out .

    Thanks !
  14. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 05 Dec 2013 Link to this post

    Hi Athira,

    Please check our reply in the other forum regarding the same issue:
    http://www.telerik.com/community/forums/silverlight/ganttview/bordercontianer-background-binding.aspx

    I would kindly ask you not to post the same question in different threads as this slows down our reply.  Thank you for the understanding.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready