Summary task design

2 posts, 0 answers
  1. Richard
    Richard avatar
    10 posts
    Member since:
    Sep 2014

    Posted 28 Nov 2014 Link to this post

    Hello,

    is there a possibility to have a different design from the summary task when it is collapsed?
    The goal is to have two designs depending on the summary expanded/collapsed state.
    In collapsed state it should look like a normal gantttaskbar. In expanded state like current
    summary task design.

    Regards,
    Richard




  2. Polya
    Admin
    Polya avatar
    199 posts

    Posted 03 Dec 2014 Link to this post

    Hello Richard,

    In the current implementation of RadGanttView such customization is not available.
    When the user expands or collapses a GanttTask remeasure or rearrange of visible containers is not performed.
    I've prepared a sample project that demonstrates the switch between summary container and event container for each SummaryGanttTask. In it I modify the SummaryContainer control template adding another grid ( same as the grid in the EventContainer ) and hide/show the correct grid depending on the value of IsExpanded of the CustomGanttTask. In the RadGanttView.ExpandCollapseService.HierarchicalCollectionAdapter.CollectionChanged event handler I modify the value of IsExpanded for the CustomGanttTask. This event is called each time a user expands/collapses a GanttTask.
    Unfortunately, this approach works when the user scrolls out of the collapsed task and returns back, because in this scenario the UI is remeasured and rearranged. It will also work correctly with a set RadGanttView.InitialExpandBehavior.

    Regards,
    Polya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top