ImageGallerySettings.ImageUrlField Property
Gets or sets the name of a data field (or an xml element’s attribute) which provides image gallery item image locations.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
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 an image gallery 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 the image URLs of image gallery items. The ImageUrlField property maps the ImageGalleryItem.ImageUrl (via the MVCxImageGalleryItem.ImageUrl) properties of image gallery item objects to the specified data field’s values.
If the ImageUrlField property of a data bound image gallery is not defined, the extension can automatically obtain item image URLs from a data field whose name is “ImageUrl”. You can also use the ImageGallerySettings.ItemDataBound property to manipulate an item’s settings as required.