Skip to main content

TreeListCommandColumn.EditButton Property

Gets the Edit button’s settings.

Namespace: DevExpress.Web.ASPxTreeList

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

NuGet Package: DevExpress.Web

Declaration

public TreeListCommandColumnButton EditButton { get; }

Property Value

Type Description
TreeListCommandColumnButton

A TreeListCommandColumnButton object that specifies the button’s settings.

Remarks

The Edit button switches the ASPxTreeList to edit mode. Use the EditButton property to specify the button’s image, caption and visibility. The button’s type is specified by the TreeListCommandColumn.ButtonType property.

The following example illustrates how to show the Edit command button as a button with an image.

<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ProductID">
    <Columns>
    ...
    <dx:TreeListCommandColumn ButtonType="Button" VisibleIndex="3">
        <EditButton Text="Edit Node" Visible="True">
            <Image ToolTip="Click button to edit" Url="icon.png" AlternateText="Edit Record"/>
        </EditButton>
    </dx:TreeListCommandColumn>
    </Columns>
</dx:ASPxTreeList>
See Also