Back to Devexpress

ASPxTreeView.NodeLinkMode Property

aspnet-devexpress-dot-web-dot-aspxtreeview-89c378ca.md

latest2.3 KB
Original Source

ASPxTreeView.NodeLinkMode Property

Gets or sets a value that specifies how nodes are represented as links within the ASPxTreeView control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(ItemLinkMode.ContentBounds)]
public ItemLinkMode NodeLinkMode { get; set; }
vb
<DefaultValue(ItemLinkMode.ContentBounds)>
Public Property NodeLinkMode As ItemLinkMode

Property Value

TypeDefaultDescription
ItemLinkModeContentBounds

One of the ItemLinkMode enumeration values.

|

Available values:

NameDescription
TextOnly

Specifies that an item is represented only by its text, and the item’s clickable content is bounded by the text length.

| | TextAndImage |

Specifies that an item is represented by both the text and image (if any), and the item’s clickable content is bounded by the total size of the text and image.

| | ContentBounds |

Specifies that an item is represented by both the text and image (if any), and the item’s clickable content extends to the width of the parent control’s boundaries.

|

Remarks

Use the NodeLinkMode property to specify the manner in which nodes are displayed as links within the ASPxTreeView control. This property controls whether the clickable content of each node which serves as a link extends to the width of the node’s boundaries (the ContentBounds value) or it is bound by the size of the node’s text (the TextOnly value) or the total size of the text and image (the TextAndImage value).

See Also

NodeLinkMode

ItemLinkMode

Tree View

ASPxTreeView Class

ASPxTreeView Members

DevExpress.Web Namespace