Skip to main content

TreeListToolbarItem.Command Property

Gets or sets the name of a command executed when clicking a toolbar item.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(TreeListToolbarCommand.Custom)]
public TreeListToolbarCommand Command { get; set; }

Property Value

Type Default Description
TreeListToolbarCommand Custom

One of the TreeListToolbarCommand enumeration values specifying the toolbar item’s command name.

Available values:

Show 24 items
Name Description
Custom

A custom user command.

FullExpand

A command that expands all nodes.

FullCollapse

A command that collapses all nodes.

ClearSorting

A command that clears sorting by the current column.

ShowCustomizationWindow

A command that controls the Column Chooser visibility.

ShowFooter

A command that controls the footer visibility.

ShowFilterRow

A command that controls the filter row visibility.

ShowFilterRowMenu

A command that controls the filter row menu visibility.

ClearFilter

A command that clears the filter applied to the current column.

Refresh

A command that refreshes grid data.

NewRoot

A command that creates a new root node.

New

A command that creates a new node.

Edit

A command that allows editing the current node.

Delete

A command that deletes the current node.

DeleteSelectedNodesOnPage

A command that deletes the selected nodes on the page.

Update

A command that saves all the changes made to the current node and switches the ASPxTreeList to browse mode.

Cancel

A command that discards any changes made to the current node and switches the ASPxTreeList to browse mode.

ExpandNode

A command that expands the node.

CollapseNode

A command that collapses the node.

ExportToPdf

A command that exports the tree list’s data to a file in PDF format.

ExportToDocx

A command that exports the tree list’s data to a file in DOCX format.

ExportToRtf

A command that exports the tree list’s data to a file in RTF format.

ExportToXls

A command that exports the tree list’s data to a file in XLS format.

ExportToXlsx

A command that exports the tree list’s data to a file in XLSX format.

Remarks

Use the Command property to specify a command that will be executed when a toolbar item is clicked.

See Also