Skip to main content
All docs
V25.1
  • TreeListCustomButtonCallbackEventArgs.ButtonID Property

    Specifies an ID of the clicked button.

    Namespace: DevExpress.Web.ASPxTreeList

    Assembly: DevExpress.Web.ASPxTreeList.v25.1.dll

    NuGet Package: DevExpress.Web

    Declaration

    public string ButtonID { get; }

    Property Value

    Type Description
    String

    An ID.

    Remarks

    <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