TreeListCommandColumn.EditButton Property
Gets the Edit button’s settings.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
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