TreeListCommandColumnRecoverButton Class
A command button that allows you to recover the deleted data.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll
Declaration
Related API Members
The following members return TreeListCommandColumnRecoverButton objects:
Remarks
The Recover command button allows users to recover the deleted data.
In markup:
<dx:ASPxTreeList ID="treeList" runat="server" ...>
<!--...-->
<Columns>
<!--...-->
<dx:TreeListCommandColumn ShowNewButtonInHeader="true">
<NewButton Visible="true" />
<DeleteButton Visible="true" />
<RecoverButton Visible="true" />
</dx:TreeListCommandColumn>
</Columns>
</dx:ASPxTreeList>
In code:
protected void Page_Init(object sender, EventArgs e)
{
ASPxTreeList treeList = new ASPxTreeList();
treeList.ID = "treeList";
Form.Controls.Add(treeList);
TreeListDataColumn col = new TreeListDataColumn();
col.FieldName = "Column_name";
treeList.Columns.Add(col);
//...
DataTable table = new DataTable();
table.Columns.Add("Column_name", typeof(string));
table.Rows.Add("Value");
//...
treeList.DataSource = table;
treeList.DataBind();
TreeListCommandColumn commandColumn = new TreeListCommandColumn();
commandColumn.NewButton.Visible = true;
commandColumn.DeleteButton.Visible = true;
commandColumn.RecoverButton.Visible = true;
treeList.Columns.Add(commandColumn);
}
MVC:
@Html.DevExpress().TreeList(settings => {
settings.Name = "treeList";
//...
settings.CommandColumn.Visible = true;
settings.CommandColumn.NewButton.Visible = true;
settings.CommandColumn.DeleteButton.Visible = true;
settings.CommandColumn.RecoverButton.Visible = true;
}).Bind(Model).GetHtml()
Implements
Inheritance
Object
StateManager
PropertiesBase
TreeListCommandColumnButton
TreeListCommandColumnRecoverButton
See Also