Free Trial Buy Now

Tree View - Node Link Mode

NodeLinkMode="ContentBounds"

Specific service scripts are used to apply the hovered and selected styles to TreeView items and generate the NodeClick events.

NodeLinkMode="TextOnly"

The hovered and selected styles are applied without using scripts. The style settings available via the Styles.Link property are used to define the appearance of links.

Description

In the ASPxTreeView, nodes represent navigation elements (links). For nodes, you can activate a specific link mode, in which only certain node elements are clickable. To accomplish this, use the NodeLinkMode property.

Options include:

  • TextOnly. Only a node's text is clickable.
  • TextAndImage. Only a node's text and image are clickable.
  • ContentBounds. The entire node's content is clickable.

To customize appearance settings for each link mode, use the ASPxTreeView's Styles.Link (for TextOnly and TextAndImage) and Styles.Node.HoverStyle (for ContentBounds) properties.

This demo shows ASPxTreeViews in two link modes - TextOnly and ContentBounds. You can click nodes in these ASPxTreeViews to see the difference in behavior and appearance.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.