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

Summary task design

1 Answer 84 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 2
Marcus asked on 28 Nov 2014, 02:02 PM
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




1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 03 Dec 2014, 11:06 AM
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.

 
Tags
GanttView
Asked by
Marcus
Top achievements
Rank 2
Answers by
Polya
Telerik team
Share this question
or