Compartilhar via


Menu.EnableTreeViewClickToOpen property

Gets or sets a value that indicates whether a TreeView node should open the Edit Control Block (ECB) when the user clicks the node.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property EnableTreeViewClickToOpen As Boolean
    Get
    Set
'Usage
Dim instance As Menu
Dim value As Boolean

value = instance.EnableTreeViewClickToOpen

instance.EnableTreeViewClickToOpen = value
public bool EnableTreeViewClickToOpen { get; set; }

Property value

Type: System.Boolean
true if the TreeView node is to open the ECB; otherwise, false.

Remarks

When this control is used in a TreeView node, the Render method is not called. The hyperlink reference is emitted by the TreeView control, and it will contain script that causes a postback and selects the node. Set EnableTreeViewClickToOpen to disable that postback and cause the ECB to open when the user clicks the TreeView node.

See also

Reference

Menu class

Menu members

Microsoft.SharePoint.WebControls namespace