Skip to main content

BootstrapTreeView.IconCssClassField Property

Gets or sets the name of a data field (or an xml element’s attribute) which provides CSS class names for images displayed within nodes.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.2.dll

Declaration

[DefaultValue("")]
public string IconCssClassField { get; set; }

Property Value

Type Default Description
String String.Empty

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

Remarks

The IconCssClassField property is in effect if the BootstrapTreeView control is bound to a data source.

Use the IconCssClassField property to specify the bound data source’s data field (or an xml element’s attribute) which stores names of CSS classes defining images that should be displayed within nodes. The IconCssClassField property maps the BootstrapTreeViewNode.IconCssClass properties of the BootstrapTreeViewNode objects to the specified data field’s values.

If the IconCssClassField property of a data bound BootstrapTreeView control is not defined, the control can automatically obtain node image locations from a data field which is named “IconCssClass”.

See Also