ImageGallerySettings.NameField Property
Gets or sets the data source field that provides unique item identifier names.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | A string value that specifies the name of the data source field that contains unique item identifier names. |
Remarks
The NameField property is in effect if an image gallery is bound to a data source.
Use the NameField property to specify the bound data source’s data field (or an xml element’s attribute) which contains unique item identifier names. The NameField property maps the ImageGalleryItem.Name (via the MVCxImageGalleryItem.Name) properties of item objects to the specified data field’s values.
If the NameField property of a data bound image gallery is not defined, the extension can automatically obtain item names from a data field called “Name”. You can also use the ImageGallerySettings.ItemDataBound property to manipulate a control item’s settings as required.