BootstrapPopupMenu.IconCssClassField Property
Gets or sets the name of a data field (or an xml element’s attribute) providing names of CSS classes that define images displayed within menu items.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
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 BootstrapPopupMenu control is bound to a data source (via the ASPxHierarchicalDataWebControl.DataSourceID or ASPxDataWebControlBase.DataSource property).
Use the IconCssClassField property to specify the bound data source’s data field (or an xml element’s attribute) which stores CSS classes of images that should be displayed within menu items. The IconCssClassField property maps the BootstrapMenuItem.IconCssClass properties of BootstrapMenuItem objects to the specified data field values.
If the IconCssClassField property of a data bound BootstrapPopupMenu control is not defined, the control can automatically obtain menu item image locations from a data field which is named “IconCssClass”. You can also handle the BootstrapPopupMenu.ItemDataBound event to manipulate a menu item’s settings as required.