Tab

RibbonTabDataFields.ColorField Property

Gets or sets the data source field which provides the colors of context tab categories to which tabs relate.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue("Color")]
public virtual string ColorField { get; set; }

Property Value

Type Default Description
String

“Color”

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

Remarks

The ColorField property is in effect if the ASPxRibbon control is bound to a data source.

Use the ColorField property to specify the bound data source’s data field (or an xml element’s attribute) which stores the colors of ribbon context tab categories. The specified color has effect when the tab belongs to a context tab category, i.e., the RibbonTab.ContextTabCategory property is not empty.

When the ASPxRibbon control is bound to a data source, the tab category can be obtained from a data source field, specified by the RibbonTabDataFields.ContextTabCategoryNameField property.

If tabs related to one category provide different category colors, the first color is applied.

See Also