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






Gets or sets a value that determines the initial state for tree list row.

Syntax

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

Remarks

By default all the loaded item in UXTreeList will be in Collapsed state. You can instruct UXTreeList to open all the loaded item by setting the InitialTreeListState property to Visible.

The following code shows how a set the initial tree list state in UXTreeList.

XAML Copy Code
<Intersoft:UXTreeList ItemsSource="{Binding Items}" ParentIDBinding="{Binding ReportsTo}" IDBinding="{Binding EmployeeID}" InitialTreeListState="Visible"/>
Note that this feature is not supported for Load on Demand scenario.

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.