Intersoft ClientUI Documentation
IsLoadOnDemand Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXTreeList Class : IsLoadOnDemand Property






Gets or sets a value that determines whether the item is load on demand or not.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property IsLoadOnDemand As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UXTreeList
Dim value As Boolean
 
instance.IsLoadOnDemand = value
 
value = instance.IsLoadOnDemand
C# 
[CategoryAttribute("Common Properties")]
public bool IsLoadOnDemand {get; set;}
Delphi 
public read-write property IsLoadOnDemand: Boolean; 
JScript 
CategoryAttribute("Common Properties")
public function get,set IsLoadOnDemand : boolean
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property bool get_IsLoadOnDemand();
public: __property void set_IsLoadOnDemand( 
   bool value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property bool IsLoadOnDemand {
   bool get();
   void set (    bool value);
}

Remarks

Understanding Load-on-Demand Capability

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.