ASPxMenuBase.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
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that specifies the name of the required data source field. |
Remarks
The NavigateUrlField property is in effect if the ASPxMenuBase control is bound to a data source (via the ASPxDataWebControlBase.DataSourceID or ASPxDataWebControlBase.DataSource property).
Use the NavigateUrlField property to specify the bound data source’s data field (or an xml element’s attribute) which stores menu items’ navigate URLs. The NavigateUrlField property maps the MenuItem.NavigateUrl properties of MenuItem objects to the specified data field’s values.
You can format the obtained navigation locations by using the ASPxMenuBase.NavigateUrlFormatString property.
If the NavigateUrlField property of a data bound ASPxMenuBase control is not defined, the control can automatically obtain menu item navigation URLs from a data field whose name is “NavigateUrl” (which is equal to the MenuItem.NavigateUrl property’s name). You can also handle the ASPxMenuBase.ItemDataBound event to manipulate a menu item’s settings, as required.