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

ASPxClientButton.Click Event

Occurs on the client side after a button is clicked.


Click: ASPxClientEvent<ASPxClientButtonClickEventHandler<ASPxClientButton>>

Event Data

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

Property Description
cancelEventAndBubble Specifies whether both the event’s default action and the event’s bubbling upon the hierarchy of event handlers should be canceled.
processOnServer Specifies whether or not to process the event on the server. Inherited from ASPxClientProcessingModeEventArgs.


Write a Click event handler to provide client-side response to an end-user click on a button control.

The Click event occurs when the user releases the pressed button.


When some buttons are used in a group (their ASPxButton.GroupName properties are set to the same value) a click on a checked button doesn’t raise the Click event.


The complete sample project is available in the DevExpress Code Central database at E1120.

function popupControl_Init(s, e) {
    //Synchronize the client variable's value with the confirm dialog checkbox' setting
    dontAskConfirmation = cbDontAsk.GetChecked();

function ShowPopup(rowId) {
    //Assign the row's ID value to a specific label within the confirmation dialog, 
    //show the dialog, and set focus to the Yes button

function btnYes_Click(s, e) {

function btnNo_Click(s, e) {

function cbDontAsk_CheckedChanged(s, e){
    //Synchronize the client variable's value with the confirm dialog checkbox' 
    //setting, and focus the Yes button
    dontAskConfirmation = cbDontAsk.GetChecked();
See Also