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

    Specifies an index of the clicked button.

    Namespace: DevExpress.Web.ASPxTreeList

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

    NuGet Package: DevExpress.Web

    Declaration

    public int ButtonIndex { get; }

    Property Value

    Type Description
    Int32

    The index.

    Remarks

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