[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Collapse]Tree List
   [Expand]Product Information
    [Expand]Binding to Data
    [Collapse]Data Representation Basics
       Accessing Columns
       Data and Command Columns
       Data Columns
       Command Columns
       Creating Columns and Binding Them to Data Fields
       Customization Window
       Customization Window Overview
      Tree Generation Algorithm in the ASPxTreeList
    [Expand]Data Editing
    [Expand]Data Shaping and Manipulation
     Drag and Drop
    [Expand]Focus and Navigation
     Appearance Customization
     Save and Restore Client Layout
   [Expand]Visual Elements
   [Expand]Member Tables
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Command Columns

Command columns are designed to allow end-users manipulate the ASPxTreeList's data. Command columns are stored together with data columns within the ASPxTreeList.Columns collection.

Expanded Commands

A command column is represented by the TreeListCommandColumn class. It provides a set of commands that allow end-users to switch the ASPxTreeList to edit mode, update data, delete and add nodes, etc.

A command column allows multiple command buttons to be displayed within a cell. A command button represents a single command. There are five commands:

Class Name Description Property
New Switches the ASPxTreeList to edit mode, and allows you to initialize and create a new node. TreeListCommandColumn.NewButton
Edit Switches the ASPxTreeList to edit mode. TreeListCommandColumn.EditButton
Delete Deletes a node. TreeListCommandColumn.DeleteButton
Update Saves all the changes made to the current node and switches the ASPxTreeList to browse mode. TreeListCommandColumn.UpdateButton
Cancel Discards any changes made to the current node and switches the ASPxTreeList to browse mode. TreeListCommandColumn.CancelButton

Expanded Behavior

End-users can move command columns among visible columns or to the Customization Window, by dragging their headers. This is controlled by the TreeListSettingsBehavior.AllowDragDrop option.

Expanded Custom Buttons

Command columns can also display custom buttons within cells. You can create your own buttons, and define custom actions for them. For an example, see How to: Create Custom Command Buttons.

Is this topic helpful?​​​​​​​