Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

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.

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.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxNavigationAndLayoutDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxNavigationAndLayoutDemos