Skip to main content

TabControlSettings.TextField Property

Gets or sets the name of a data field (or an xml element’s attribute) which provides tab 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 TabControl is bound to a data source (via the TabControlExtension.Bind, TabControlExtension.BindToSiteMap or TabControlExtension.BindToXML methods).

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

You can format the obtained texts by using the TabControlSettings.TextFormatString property.

If the TextField property of a data bound TabControl is not defined, the TabControl can automatically obtain tab texts from a data field which is named as “Text” (which is equal to the TabBase.Text property’s name). You can also handle the TabControlSettings.TabDataBound event to manipulate a tab’s settings as required.

See Also