TreeListCommandColumnUpdateButton Class

A command button that allows you to update data on the server.

Namespace: DevExpress.Web.ASPxTreeList

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

Declaration

public class TreeListCommandColumnUpdateButton :
    TreeListCommandColumnButton

The following members accept/return TreeListCommandColumnUpdateButton objects:

Remarks

The Update command button allows users to apply changes to the current node.

Update Button

Declaratively:

<dx:ASPxTreeList ID="treeList" runat="server" ...>
    <!--...-->
    <SettingsEditing Mode="Inline" />
    <Columns>
        <!--...-->
        <dx:TreeListCommandColumn ShowNewButtonInHeader="true">
            <EditButton Visible="true" />
            <NewButton Visible="true" />
            <UpdateButton 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.EditButton.Visible = true;
    commandColumn.NewButton.Visible = true;
    commandColumn.UpdateButton.Visible = true;
    treeList.Columns.Add(commandColumn);
}

MVC:

@Html.DevExpress().TreeList(settings => {
    settings.Name = "treeList";
    //...
    settings.CommandColumn.Visible = true;
    settings.CommandColumn.EditButton.Visible = true;
    settings.CommandColumn.NewButton.Visible = true;
    settings.CommandColumn.UpdateButton.Visible = true;
}).Bind(Model).GetHtml()

Implements

Inheritance

See Also