Skip to main content

TreeViewSettings.NodeLinkMode Property

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public ItemLinkMode NodeLinkMode { get; set; }

Property Value

Type Description
ItemLinkMode

One of the ItemLinkMode enumeration values.

Available values:

Name Description
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 TreeView. 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