Skip to main content

DxTreeView.Target Property

Specifies the target attribute’s value for all nodes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public string Target { get; set; }

Property Value

Type Default Description
String null

The target attribute’s value.


Use a node’s NavigateUrl property to specify a URL where the client web browser navigates when the node is clicked. To specify where the browser should display the URL (in the current window, new tab, and so on), use the Target property.

Refer to the MDN documentation for available property values: target. If you do not specify the Target property value explicitly, the component applies the _self value.

The DxTreeView.Target property specifies the common target attribute’s value for all nodes whose NavigateUrl property is specified in the TreeView. To override the attribute value for a specific node, use the DxTreeViewNode.Target property.

The code below sets the common target attribute’s value for all nodes to _blank and overrides this value for the first node (sets it to _self explicitly).

<DxTreeView Target="_blank">
        <DxTreeViewNode Name="Overview" 
        <DxTreeViewNode Name="Editors" Text="Data Editors" Expanded="true">
                <DxTreeViewNode Text="Combobox" NavigateUrl="" />
                <DxTreeViewNode Text="Spin Edit" NavigateUrl="" />
See Also