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

TreeViewSettings.NameField Property

Gets or sets the data source field which provides node unique identifier names.

Namespace: DevExpress.Web.Mvc

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

Declaration

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

Property Value

Type Description
String

A string value that specifies the name of the data source field which contains node unique identifier names.

Remarks

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

Use the NameField property to specify the bound data source's data field (or an xml element's attribute) which stores unique identifier names of TreeView nodes. The NameField property maps the TreeViewNode.Name properties of MVCxTreeViewNode objects to the specified data field's values.

If the NameField property of a data bound TreeView is not defined, the control can automatically obtain node unique identifiers from a data field whose name is "Name" (which is equal to the TreeViewNode.Name property's name).

See Also