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

NavBarItemDataFields.NameField Property

Gets or sets the name of a data field (or an xml element's attribute) which provides item unique identifier names.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue("")]
public override string NameField { get; set; }
<DefaultValue("")>
Public Overrides Property NameField As String

Property Value

Type Default Description
String

String.Empty

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

Remarks

The NameField property is in effect if the NavBarItemDataFields control is bound to a data source (via the ASPxDataWebControlBase.DataSourceID or ASPxDataWebControlBase.DataSource property).

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 navbar items. The NameField property maps the NavBarItem.Name properties of NavBarItem objects to the specified data field's values.

If the NameField property of a data bound NavBarItemDataFields control is not defined, the control can automatically obtain item unique identifiers from a data field whose name is "Name" (which is equal to the NavBarItem.Name property's name). You can also handle the ASPxNavBar.ItemDataBound event to manipulate a tab's settings as required.

See Also