How set Background Color of Row like Row Selection

8 posts, 0 answers
  1. Sistema PRI
    Sistema PRI avatar
    5 posts
    Member since:
    Oct 2008

    Posted 19 Aug 2013 Link to this post

    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
  2. Polya
    Admin
    Polya avatar
    199 posts

    Posted 22 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Sistema PRI
    Sistema PRI avatar
    5 posts
    Member since:
    Oct 2008

    Posted 27 Aug 2013 Link to this post

    Hi Polia,
    Thanks for your reply.
    I Will test it.

    Best Regards

  5. Sistema PRI
    Sistema PRI avatar
    5 posts
    Member since:
    Oct 2008

    Posted 27 Aug 2013 Link to this post

    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

  6. Polya
    Admin
    Polya avatar
    199 posts

    Posted 30 Aug 2013 Link to this post

    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 >>
  7. Nikola
    Nikola avatar
    8 posts
    Member since:
    Sep 2014

    Posted 08 Oct 2014 Link to this post

    Catch the event: GanttViewTextViewItemFormattingEvent

    in the event: e.ItemElement.BackColor = Color.Red;
  8. LeeU
    LeeU avatar
    1 posts
    Member since:
    Sep 2012

    Posted 25 Mar 2015 in reply to Polya Link to this post

    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
  9. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 30 Mar 2015 Link to this post

    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.

     
Back to Top
DevCraft banner