CardViewToolbarItem.Command Property
Gets or sets the name of a command executed when clicking a toolbar item.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue(CardViewToolbarCommand.Custom)]
public CardViewToolbarCommand Command { get; set; }
Property Value
Type | Default | Description |
---|---|---|
CardViewToolbarCommand | Custom | One of the CardViewToolbarCommand enumeration values specifying the toolbar item’s command name. |
Available values:
Name | Description |
---|---|
Custom | A custom user command. |
ShowHeaderPanel | A command that controls the header panel visibility. |
ShowFilterEditor | A command that controls the filter control visibility. |
ClearFilter | A command that clears the filter applied to the current column. |
ClearSorting | A command that clears sorting by the current column. |
FullExpand | A command that expands all group rows. |
FullCollapse | A command that collapses all group rows. |
ShowSearchPanel | A command that controls the search panel visibility. |
ShowSummaryPanel | A command that controls the “Summary Panel” visibility. |
ShowCustomizationWindow | A command that controls the customization window visibility. |
ShowCardHeader | A command that controls the card header visibility. |
ShowCardFooter | A command that controls the card footer visibility. |
Refresh | A command that refreshes grid data. |
New | A command that creates a new card. |
Edit | A command that allows editing the current card. |
Delete | A command that deletes the current card. |
DeleteSelectedCardsOnPage | A command that deletes the selected cards on a page. |
Update | A command that saves all the changes made to the current card and switches the ASPxCardView to browse mode. |
Cancel | A command that discards any changes made to the current card and switches the ASPxCardView to browse mode. |
UpdateSummaries | A command that recalculates total and group summaries on the client in batch edit mode. |
ExportToPdf | A command that exports the grid’s data to a file in PDF format. |
ExportToDocx | A command that exports the grid’s data to a file in DOCX format. |
ExportToRtf | A command that exports the grid’s data to a file in RTF format. |
ExportToCsv | A command that exports the grid’s data to a file in CSV format. |
ExportToXls | A command that exports the grid’s data to a file in XLS format. |
ExportToXlsx | A command that exports the grid’s data to a file in XLS format. |
Remarks
Use the Command property to specify a command that will be executed when a toolbar item is clicked.
Note
The ASPxGridBase.KeyFieldName property should be specified when using the following grid features:
- data editing;
- adding new and deleting existing card;
- selecting card;
- endless paging.