Skip to main content

TreeViewSettings.NameField Property

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public string NameField { get; set; }

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