BootstrapCardView.CustomButtonInitialize Event

Enables you to initialize custom command buttons.

Namespace: DevExpress.Web.Bootstrap

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

Declaration

public event BootstrapCardViewCustomButtonEventHandler CustomButtonInitialize
Public Event CustomButtonInitialize As BootstrapCardViewCustomButtonEventHandler

Event Data

The CustomButtonInitialize event handler receives an argument of the BootstrapCardViewCustomCommandButtonEventArgs type. The following properties provide information specific to this event.

Property Description
ButtonID Gets the processed custom button's identifier.
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.
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.
LayoutItem Gets the command layout item which owns the processed command button.
RenderMode Specifies the processed custom command button's render mode.
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.
Visible Gets or sets whether the processed custom button is visible.
VisibleIndex Gets the visible index of a data item (row, card or record) which contains the processed custom button.

Remarks

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.

Note

It is impossible to change the style of the selection checkbox using the CustomButtonInitialize event.

See Also