Enables you to initialize custom command buttons.
public event BootstrapCardViewCustomButtonEventHandler CustomButtonInitialize
Public Event CustomButtonInitialize As BootstrapCardViewCustomButtonEventHandler
The CustomButtonInitialize event's data class is BootstrapCardViewCustomCommandButtonEventArgs. The following properties provide information specific to this event:
|ButtonID||Gets the processed custom button’s identifier. Inherited from ASPxGridCustomCommandButtonEventArgs.|
|CssClass||Provides access to CSS classes applied to the processed custom command button element.|
|Enabled||Gets or sets a value that specifies whether the processed custom button is enabled. Inherited from ASPxGridCustomCommandButtonEventArgs.|
|IconCssClass||Gets or sets the CSS class of the icon displayed within the command button.|
|Image||This member is not in effect for this class. It is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio designer tools.|
|IsEditingCard||Gets whether a custom command button is displayed within the card currently being edited. Inherited from ASPxCardViewCustomCommandButtonEventArgs.|
|LayoutItem||Gets the command layout item which owns the processed command button.|
|RenderMode||Specifies the processed custom command button’s render mode. Inherited from ASPxGridCustomCommandButtonEventArgs.|
|Styles||This member is not in effect for this class. It is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio designer tools.|
|Text||Gets or sets the processed custom button’s text. Inherited from ASPxGridCustomCommandButtonEventArgs.|
|Visible||Gets or sets whether the processed custom button is visible. Inherited from ASPxGridCustomCommandButtonEventArgs.|
|VisibleIndex||Gets the visible index of a data item (row, card or record) which contains the processed custom button. Inherited from ASPxGridCustomCommandButtonEventArgs.|
The CustomButtonInitialize event is raised for each custom command button, and enables you to initialize it. For instance, you can handle this event to hide individual buttons.
The event parameter’s properties allow you to identify the button, card, the type of cell which contains the processed button, etc.
To initialize individual built-in command buttons (edit, new, delete, etc.), handle the BootstrapCardView.CommandButtonInitialize event.
It is impossible to change the style of the selection checkbox using the CustomButtonInitialize event.