Back to Devexpress

MenuSettingsBase.NavigateUrlField Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-menusettingsbase-60857b11.md

latest2.5 KB
Original Source

MenuSettingsBase.NavigateUrlField Property

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

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

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

Property Value

TypeDescription
String

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

|

Remarks

The NavigateUrlField property is in effect if a menu 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 menu items’ navigation URLs. The NavigateUrlField property maps the NavigateUrl properties of menu item objects to the specified data field’s values. You can format the obtained navigation locations by using the MenuSettingsBase.NavigateUrlFormatString property.

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

See Also

NavigateUrlFormatString

ItemDataBound

Data Binding Using Mapping Properties

Automatic Data Binding

Menu

MenuSettingsBase Class

MenuSettingsBase Members

DevExpress.Web.Mvc Namespace