Skip to main content

ImageSliderSettings.NameField Property

Gets or sets the name of a data field (or an xml element’s attribute) which provides unique image slider item identifier names.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public string NameField { get; set; }

Property Value

Type Description
String

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

Remarks

The NameField property is in effect if an image slider 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 ImageSliderItem.Name (via the MVCxImageSliderItem.Name) properties of item objects to the specified data field’s values.

If the NameField property of a data bound image slider is not defined, ImageSlider can automatically obtain item names from a data field which is named “Name”. You can also use the ImageSliderSettings.ItemDataBound property to manipulate a image slider item’s settings as required.

See Also