Skip to main content

BootstrapToolbar.ItemDataBound Event

Occurs once a toolbar has been bound to a data source.

Namespace: DevExpress.Web.Bootstrap

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

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public event BootstrapToolbarItemEventHandler ItemDataBound

Event Data

The ItemDataBound event's data class is BootstrapToolbarItemEventArgs. The following properties provide information specific to this event:

Property Description
Item Gets an item object related to the event.

Remarks

The ItemDataBound event is raised for each item after it’s data bound to the corresponding data from the specified data source. This event enables you to customize settings of the related item before it is finally rendered. By correctly handling the ItemDataBound event, you can, for example, implement custom logic to dynamically map properties of a toolbar control’s items to the required data fields.

The processed toolbar item can be accessed by using the BootstrapToolbarItemEventArgs.Item property of the event’s argument.

If the control functions in unbound mode, the ItemDataBound event isn’t raised.

See Also