Data Binding Events
- 2 minutes to read
The ASPxRibbon control implements specific data-binding events that allow you to perform custom operations at specific times during the data binding process.
TabDataBound
The ASPxRibbon.TabDataBound event occurs immediately after an individual RibbonTab object has been automatically created, and its properties have been initialized with values retrieved from the corresponding data fields. You can add functionality to your application within a handler of the ASPxRibbon.TabDataBound event, by accessing the data bound tab via the event argument’s RibbonTabEventArgs.Tab property, and modify its settings as required. Also, the RibbonTab.DataItem property can be used to access the tab’s corresponding data item object.
GroupDataBound
The ASPxRibbon.GroupDataBound event occurs immediately after an individual RibbonGroup object has been automatically created, and its properties have been initialized with values retrieved from the corresponding data fields. You can add functionality to your application within a handler of the ASPxRibbon.GroupDataBound event by accessing the data bound group via the event argument’s RibbonGroupEventArgs.Group property, and modify its settings as required. Also, the RibbonGroup.DataItem property can be used to access the group’s corresponding data item object.
ItemDataBound
The ASPxRibbon.ItemDataBound event occurs immediately after an individual RibbonItemBase object has been automatically created, and its properties have been initialized with values retrieved from the corresponding data fields. You can add functionality to your application within a handler of the ASPxRibbon.ItemDataBound event by accessing the data bound item via the event argument’s RibbonItemEventArgs.Item property, and modify its settings as required. Also, the RibbonItemBase.DataItem property can be used to access the item’s corresponding data item object.
DataBound
The ASPxDataWebControlBase.DataBound event is invoked to notify that the data binding logic used by the ASPxRibbon control is complete. This event occurs after all data items of the specified data source have been processed and the corresponding ribbon tab, group, and item objects have been added. You can also implement additional logic at this time, by providing a handler to the ASPxDataWebControlBase.DataBound event.