TreeListCommandColumn.EditButton Property
In This Article
Gets the Edit button’s settings.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public TreeListCommandColumnButton EditButton { get; }
#Property Value
Type | Description |
---|---|
Tree |
A Tree |
#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