Skip to main content

ImageGallerySettings.TextField Property

Gets or sets the name of a data field (or an xml element’s attribute) which provides image gallery item texts.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public string TextField { get; set; }

Property Value

Type Description
String

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

Remarks

The TextField property is in effect if the ImageGallery extension is bound to a data source.

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

If the TextField property of a data bound ImageGallery control is not defined, the control can automatically obtain item texts from a data field whose name is “Text”. You can also use the ImageGallerySettings.ItemDataBound property to manipulate an item’s settings as required.

See Also