System.Web.UI.WebControls.TreeNodeSelectAction Enumeration

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

Syntax

public enum TreeNodeSelectAction

Remarks

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

Note:

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

Members

Member NameDescription
Expand

Raises the TreeView.TreeNodeExpanded event when a node is selected.

None

Raises no events when a node is selected.

Select

Raises the TreeView.SelectedNodeChanged event when a node is selected.

SelectExpand

Raises both the TreeView.SelectedNodeChanged and TreeView.TreeNodeExpanded events when a node is selected.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0