Skip to main content

MenuSettingsBase.NameField Property

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public string NameField { get; set; }

Property Value

Type Description
String

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

Remarks

The NameField property is in effect if a menu 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) that stores unique identifier names of menu items. The NameField property maps the Name properties of menu item objects to the specified data field’s values.

If the NameField property of a data bound menu is not defined, the menu can automatically obtain unique menu item identifiers from a data field whose name is “Name”. You can also use the MenuSettingsBase.ItemDataBound property to manipulate a menu item’s settings as required.

See Also