A newer version of this page is available. Switch to the current version.

TreeViewSettings.NavigateUrlField Property

Gets or sets the name of a data field (or an xml element's attribute) which provides node navigate URLs.

Namespace: DevExpress.Web.Mvc

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

Declaration

public string NavigateUrlField { get; set; }
Public Property NavigateUrlField As String

Property Value

Type Description
String

A string value that specifies the name of the required data source field.

Remarks

The NavigateUrlField property is in effect if the TreeView is bound to a data source.

Use the NavigateUrlField property to specify the bound data source's data field (or an xml element's attribute) which stores node navigate URLs. The NavigateUrlField property maps the TreeViewNode.NavigateUrl properties of MVCxTreeViewNode objects to the specified data field's values.

You can format the obtained navigate locations by using the TreeViewSettings.NavigateUrlFormatString property.

If the NavigateUrlField property of a data bound TreeView is not defined, the control can automatically obtain node navigate URLs from a data field whose name is "NavigateUrl" (which is equal to the TreeViewNode.NavigateUrl property's name).

See Also