Intersoft.Client.UI.Data Namespace > UXTreeList Class : IsLoadOnDemand Property |
<CategoryAttribute("Common Properties")> Public Property IsLoadOnDemand As Boolean
Dim instance As UXTreeList Dim value As Boolean instance.IsLoadOnDemand = value value = instance.IsLoadOnDemand
[CategoryAttribute("Common Properties")] public bool IsLoadOnDemand {get; set;}
[CategoryAttribute("Common Properties")] public: property bool IsLoadOnDemand { bool get(); void set ( bool value); }
UXTreeList supports load on demand scenario using MVVM pattern where only the root items are loaded initially. The children will be loaded on demand as users expanded the item for the first time. This feature is particularly useful to improve the overall performance when the assigned data source is relatively large.
To enable load-on-demand, you set the IsLoadOnDemand property of the control to true, and set the ExpandedItem and ProcessedItem properties to appropriate binding in your ViewModel.
The ExpandedItem property allows you to interact with the entity being expanded and write your own logic to retrieve the child items in the ViewModel. Once the child items become available, you assign the original entity to the ProcessedItem property to notify the control that the loading process is completed.
In this mode, a busy indicator will be automatically displayed in each expanded item during the loading progress.
To learn more how to enable load on demand in UXTreeList, see How-to: Enable Load On Demand Behavior In UXTreeList.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2