RadiantQ WPF Gantt
Load Data On Demand On Expand
Previous Topic  Next Topic 

Load Data On Demand On Expand


When you have a large hierarchy of data to be displayed in the gantt, the load time can be improved by keeping the hierarchy collapsed on load and then fetch child data as parents expand. This is possible by listening to the FlexyTable.BeforeExpand event where you can fetch child data when a parent expands.


If you choose to setup your gantt to behave like this, there are a few more things to do:


a) Set FlexyGantt's ForceParentTemplateEvenIfChildless to true. 

b) Implement IHasHierarchyViewInfo interface (which contains a single AlwaysShowExpander property).

c) Set FlexyTree.AutoExpandNodes to false.


This is illustrated in this sample in the install: <install path>\Samples\FlexyGantt\Misc\PerformanceSampleLoadOnExpand




� RadiantQ 2009 - 2019. All Rights Reserved.