All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxTreeList.CustomButtonCallback Event

Occurs when a user clicks a custom command button.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v20.2.dll

Declaration

public event TreeListCustomButtonCallbackEventHandler CustomButtonCallback
Public Event CustomButtonCallback As TreeListCustomButtonCallbackEventHandler

Event Data

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

Property Description
ButtonID Specifies an ID of the clicked button.
ButtonIndex Specifies an index of the clicked button.
NodeKey Specifies the node key to which the clicked button belongs.

Remarks

Use the CustomButtonCallback event to handle a click on a custom command button.

<ASPxTreeList ID="ASPxTreeList1" onCustomButtonCallback="ASPxTreeList1_CustomButtonCallback">
    ...
</ASPxTreeList>
protected void ASPxTreeList1_CustomButtonCallback(object sender, TreeListCustomButtonCallbackEventArgs e) {
    if (e.ButtonID == "test_button_name"){
        // your code
    }
}
See Also