A newer version of this page is available. Switch to the current version.

BootstrapCardView.CommandButtonInitialize Event

Enables you to initialize individual command buttons.

Namespace: DevExpress.Web.Bootstrap

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

Declaration

public event BootstrapCardViewCommandButtonEventHandler CommandButtonInitialize
Public Event CommandButtonInitialize As BootstrapCardViewCommandButtonEventHandler

Event Data

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

Property Description
ButtonType Gets the type of the command button currently being initialized. Inherited from ASPxCardViewCommandButtonEventArgs.
CssClass Provides access to CSS classes applied to the processed command button element.
Enabled Gets or sets whether the processed command button is enabled. Inherited from ASPxGridCommandButtonEventArgs.
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 command button is displayed within the card currently being edited. Inherited from ASPxCardViewCommandButtonEventArgs.
LayoutItem Gets the command layout item which owns the processed command button.
RenderMode Specifies the processed command button's render mode. Inherited from ASPxGridCommandButtonEventArgs.
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 the processed command button's text. Inherited from ASPxGridCommandButtonEventArgs.
Visible Gets or sets whether the command button is visible. Inherited from ASPxGridCommandButtonEventArgs.
VisibleIndex Gets the visible index of a data item (row, card or record) which contains the processed command button. Inherited from ASPxGridCommandButtonEventArgs.

Remarks

The CommandButtonInitialize event is raised for each built-in command button (edit, new, delete, etc.), and allows their settings to be initialized. For instance, you can hide or disable individual command buttons.

The processed button is returned by the ASPxCardViewCommandButtonEventArgs.ButtonType property. The card in which this button is displayed can be identified by its visible index, returned by the ASPxGridCommandButtonEventArgs.VisibleIndex property. To specify whether the button should be visible or enabled, use the ASPxGridCommandButtonEventArgs.Visible and ASPxGridCommandButtonEventArgs.Enabled properties, respectively.

To initialize custom command buttons, handle the BootstrapCardView.CustomButtonInitialize event.

See Also