TreeListCommandColumnCancelButton Class
A command button that allows you to cancel data editing.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Related API Members
The following members return TreeListCommandColumnCancelButton objects:
Remarks
The Cancel command button allows users to cancel data editing.
In markup:
<dx:ASPxTreeList ID="treeList" runat="server" ...>
<!--...-->
<SettingsEditing Mode="Batch" />
<Columns>
<!--...-->
<dx:TreeListCommandColumn ShowNewButtonInHeader="true">
<NewButton Visible="true" />
<DeleteButton Visible="true" />
<CancelButton 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);
treeList.SettingsEditing.Mode = TreeListEditMode.Batch;
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.CancelButton.Visible = true;
treeList.Columns.Add(commandColumn);
}
MVC:
@Html.DevExpress().TreeList(settings => {
settings.Name = "treeList";
settings.SettingsEditing.Mode = TreeListEditMode.Batch;
//...
settings.CommandColumn.Visible = true;
settings.CommandColumn.NewButton.Visible = true;
settings.CommandColumn.DeleteButton.Visible = true;
settings.CommandColumn.CancelButton.Visible = true;
}).Bind(Model).GetHtml()
Implements
Inheritance
Object
StateManager
PropertiesBase
TreeListCommandColumnButton
TreeListCommandColumnCancelButton
See Also