ASPxVerticalGrid.CustomButtonInitialize Event
Enables you to initialize a custom command button.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public event ASPxVerticalGridCustomButtonEventHandler CustomButtonInitialize
#Event Data
The CustomButtonInitialize event's data class is ASPxVerticalGridCustomCommandButtonEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Button |
Gets the processed custom button’s identifier.
Inherited from ASPx |
Enabled |
Gets or sets a value that specifies whether the processed custom button is enabled.
Inherited from ASPx |
Image |
Gets the settings of an image displayed within the processed custom button.
Inherited from ASPx |
Render |
Specifies the processed custom command button’s render mode.
Inherited from ASPx |
Row | Gets a command row which owns the processed custom command button. |
Styles |
Gets the processed custom button’s style.
Inherited from ASPx |
Text |
Gets or sets the processed custom button’s text.
Inherited from ASPx |
Visible |
Gets or sets whether the processed custom button is visible.
Inherited from ASPx |
Visible |
Gets the visible index of a data item (row, card or record) which contains the processed custom button.
Inherited from ASPx |
#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, record, the type of a cell which contains the processed button, etc.
To initialize individual built-in command buttons (edit, new, delete, etc.), handle the ASPxVerticalGrid.CommandButtonInitialize event.
Note
If you call the Get
Note
It is impossible to change the style of the selection checkbox using the Custom