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

How set Background Color of Row like Row Selection

7 Answers 269 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Sistema PRI
Top achievements
Rank 1
Sistema PRI asked on 19 Aug 2013, 06:10 PM
Hi.
I am developing an application with GanttView.
I have to show Critical path on GanttView. One part of it I have done ( highlight tasks with HighlightedItemsSource), but I want to hightlight the rows in the grid part of GantView, exactly like when I select one row.
Note that highlight on the bars I have already done, I want to highlight the grid row of each highlighted item (I have tried BorderContainerStyle and AlternatingBorderContainerStyle but it draw background both on grid and tasks bar row).

How Can I do this ?

regards

7 Answers, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 22 Aug 2013, 03:06 PM
Hi Gustavo,

Unfortunately the functionality described is not implemented. Thank you for suggesting it. I will discuss this request with my colleagues and we might include it in a future release.

As a workaround you may change the SimpleCellContainer and the SimpleTreeCellContainer styles. I've attached a project that adds a red border of the grid cells. Try modifying the styles and the ControlTemplates of the SimpleCellContainer and the SimpleTreeCellContainer to achieve the desired effect. In the project I am using the Office_Black theme so change it with the one you are using.

Hopefully this helps. Feel free to contact us in case you have any problems or concerns.
 
Regards,
Polya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Sistema PRI
Top achievements
Rank 1
answered on 27 Aug 2013, 12:36 PM
Hi Polia,
Thanks for your reply.
I Will test it.

Best Regards

0
Sistema PRI
Top achievements
Rank 1
answered on 27 Aug 2013, 06:27 PM
Hi Polia,
This exactly I want. However, i need to use this with a Binding and converter.
I have a List of Critical Items, so I need to use this style only that tasks that are in Cirtical Items List. I want to do this with Binding and ValueConverter. Can you help-me ?

NOTE: I want to bind the 'dataitem', use it in converter passing a parameter (List of Critical Items), to verify if the data item (task) is critical.
Best Regards

0
Polya
Telerik team
answered on 30 Aug 2013, 11:40 AM
Hello Gustavo,

I am sending you the modified project in which we apply a red border around the tasks that have IsMilestone set to true, and apply a transparent border otherwise.
You can see the Binding in the ControlTemplates where I bind the BorderBrush to the DataItem and use the CellInfoToBrushConverter to return the corresponding Brush from the Dataitem.
You can use the IsCritical property of your custom GanttTask instead of the IsMilestone property to achieve similar behavior.

Hopefully this helps.

Regards,
Polya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Nikola
Top achievements
Rank 1
answered on 08 Oct 2014, 06:18 AM
Catch the event: GanttViewTextViewItemFormattingEvent

in the event: e.ItemElement.BackColor = Color.Red;
0
LeeU
Top achievements
Rank 1
answered on 25 Mar 2015, 03:18 PM
HI there,

has the critical path functionality been added to the Gantt? One of the most important outcomes from using Gantt charts is to identify and prepare to handle with more attention activities on the critical path, without it, its usefulness gets reduce significantly for real project managers.

Is there any work around?

Thanks,

Lee
0
Vladi
Telerik team
answered on 30 Mar 2015, 07:44 AM
Hello Lee,

Calculating the critical path is not a built-in feature in the current version of the RadGanttView control. The control's implementation mainly focuses on visualizing a business data model rather than modeling the data in any specific way. There is a built-in functionality for highlighting the desired tasks but the extraction and filtering of those tasks is left open for implementation by our clients. You can check our highlighting example available in our online demos here.

As we see that providing an example on how a "critical path" could be implemented using RadGanttView would be of use to our clients we have logged this feature request for example in our feedback portal here. You can vote for it and track its status at the mentioned link address.

Regards,
Vladi
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GanttView
Asked by
Sistema PRI
Top achievements
Rank 1
Answers by
Polya
Telerik team
Sistema PRI
Top achievements
Rank 1
Nikola
Top achievements
Rank 1
LeeU
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or