MenuSettingsBase.ImageUrlField Property

Gets or sets the name of a data field (or an xml element's attribute) which provides URLs for images displayed within menu items.

Namespace: DevExpress.Web.Mvc

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

Declaration

public string ImageUrlField { get; set; }
Public Property ImageUrlField As String

Property Value

Type Description
String

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

Remarks

The ImageUrlField property is in effect if a menu is bound to a data source.

Use the ImageUrlField property to specify the bound data source's data field (or an xml element's attribute) which stores locations of images that should be displayed within menu items. The ImageUrlField property maps the Image.Url properties of menu item objects to the specified data field's values.

If the ImageUrlField property of a data bound menu is not defined, the menu can automatically obtain menu item image locations from a data field which is named "ImageUrl". You can also use the MenuSettingsBase.ItemDataBound property to manipulate a menu item's settings as required.

See Also