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

specific color for each type of task

12 Answers 328 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 29 May 2012, 08:44 PM
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?

12 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 30 May 2012, 09:52 AM
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 >>

0
AMO
Top achievements
Rank 1
answered on 07 Jan 2013, 05:57 AM
Hi ,
Is this possible in Silverligth.Can you please help out ?I have already posted in the Telerik silverligth  forum ....
0
Miroslav Nedyalkov
Telerik team
answered on 07 Jan 2013, 09:01 AM
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.

0
AMO
Top achievements
Rank 1
answered on 07 Jan 2013, 10:35 AM
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 ?
0
Miroslav Nedyalkov
Telerik team
answered on 07 Jan 2013, 11:07 AM
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.

0
David
Top achievements
Rank 1
answered on 04 Feb 2013, 01:26 PM
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
0
Vladi
Telerik team
answered on 06 Feb 2013, 09:16 AM
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.

0
AMO
Top achievements
Rank 1
answered on 02 Dec 2013, 12:33 PM
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....

0
AMO
Top achievements
Rank 1
answered on 02 Dec 2013, 01:05 PM
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 !

0
AMO
Top achievements
Rank 1
answered on 02 Dec 2013, 06:49 PM
Forgot to mention ...working on Silverlight control not WPF
0
AMO
Top achievements
Rank 1
answered on 03 Dec 2013, 05:00 AM
Hi ,

Any thoughts on this ???
Please help out .

Thanks !
0
Yana
Telerik team
answered on 05 Dec 2013, 02:03 PM
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 >>
Tags
GanttView
Asked by
Chad
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
AMO
Top achievements
Rank 1
David
Top achievements
Rank 1
Vladi
Telerik team
Yana
Telerik team
Share this question
or