ImageSliderSettings.TextField Property

Gets or sets the data source field which provides item descriptions.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v21.1.dll


public string TextField { get; set; }

Property Value

Type Description

A string value that specifies the name of the data source field which contains item descriptions.


The TextField property is in effect if an image slider is bound to a data source.

ImageSlider can display the item text within an item text area if it is enabled by the ImageSliderImageAreaSettings.ItemTextVisibility property.

Use the TextField property to specify the bound data source’s data field (or an xml element’s attribute) which stores the item text. The TextField property maps the ImageSliderItem.Text (via the MVCxImageSliderItem.Text) properties of item objects to the specified data field’s values.

If the TextField property of a data bound image slider is not defined, the ImageSlider extension can automatically obtain item text from a data field that is named “Text”. You can also use the ImageSliderSettings.ItemDataBound property to manipulate an image slider item’s settings as required.

See Also