Back to Devexpress

TreeListView.AutoExpandAllNodes Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-0bc096a8.md

latest3.9 KB
Original Source

TreeListView.AutoExpandAllNodes Property

Gets or sets whether all nodes are automatically expanded when the View is being loaded. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool AutoExpandAllNodes { get; set; }
vb
Public Property AutoExpandAllNodes As Boolean

Property Value

TypeDescription
Boolean

true to expand all nodes when the View is being loaded; otherwise, false.

|

Remarks

If the AutoExpandAllNodes property is set to true , all nodes that have children are automatically expanded when the View is being loaded or the control’s DataControlBase.ItemsSource property’s value has been changed.

Tip

Topic : Expand and Collapse Nodes

The following code snippets (auto-collected from DevExpress Examples) contain references to the AutoExpandAllNodes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-tree-list-calculate-custom-node-summaries/CS/CustomNodeSummaries_CodeBehind/MainWindow.xaml#L13

xml
<dxg:TreeListControl.View>
    <dxg:TreeListView AutoExpandAllNodes="True" AutoWidth="True"
                      KeyFieldName="ID" ParentFieldName="ParentID"

wpf-lookupedit-display-treelist-as-popup-content/CS/CustomTreeViewComboBox/MainWindow.xaml#L18

xml
<dxg:TreeListView AutoWidth="True"
                  AutoExpandAllNodes="True"
                  KeyFieldName="ID"

how-to-customize-drop-marker-t568780/CS/MainWindow.xaml#L24

xml
<dxg:TreeListView KeyFieldName="ID" ParentFieldName="ParentID"
                  AutoExpandAllNodes="True" AllowDragDrop="True">
    <dxg:TreeListView.DropMarkerTemplate>

how-to-implement-drag-and-drop-between-gridcontrols-t566656/CS/MainWindow.xaml#L16

xml
ParentFieldName="ParentID"
AutoExpandAllNodes="True"
AutoWidth="True"

wpf-ganttcontrol-getting-started/CS/GanttControlDemoApp/MainWindow.xaml#L19

xml
<dxgn:GanttView
    AutoExpandAllNodes="True"
    AllowEditing="False"

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace