Export (0) Print
Expand All
Expand Minimize

TreeNodeSelectAction Enumeration

Represents the event or events to raise when a node in the TreeView control is selected.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public enum class TreeNodeSelectAction

Member nameDescription
ExpandRaises the TreeNodeExpanded event when a node is selected.
NoneRaises no events when a node is selected.
SelectRaises the SelectedNodeChanged event when a node is selected.
SelectExpandRaises both the SelectedNodeChanged and TreeNodeExpanded events when a node is selected.

When the NavigateUrl property for a TreeNode control is set to a value other than an empty string (""), clicking the node navigates to the specified URL. If the NavigateUrl property is set to an empty string, clicking the node causes a postback. The SelectAction property determines the events to raise on the postback. By default, the Select event is raised. No events are raised if the NavigateUrl property is set.


The HoverNodeStyle property is not rendered for a node with its SelectAction property set to the None value.

The following code example demonstrates how to use the TreeNodeSelectAction enumeration to represent the event that is raised when a node is clicked in the TreeView control.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft