Skip to main content

NavBarItemDataFields.ImageUrlField Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public string ImageUrlField { get; set; }

Property Value

Type Default Description
String String.Empty

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


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

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 navbar items. The ImageUrlField property maps the Image.Url properties of NavBarItem objects to the specified data field’s values.

If the ImageUrlField property of a data bound NavBarItemDataFields control is not defined, the control can automatically obtain item image locations from a data field which is named “ImageUrl”. You can also handle the ASPxNavBar.ItemDataBound event to manipulate an item’s settings as required.

See Also