Represents the event or events to raise when a node in the System.Web.UI.WebControls.TreeView control is selected.
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.
The TreeView.HoverNodeStyle property is not rendered for a node with its TreeNode.SelectAction property set to the TreeNodeSelectAction.None value.
Member Name | Description |
---|---|
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. |