The ASPxCardView stores toolbars in its ASPxCardView.Toolbars collection. Each toolbar is a CardViewToolbar class instance. You can add and remove toolbars in the collection and change the following characteristics of individual toolbars:
Gets or sets a value specifying the visibility of the toolbar.
To populate a toolbar with toolbar items and to have indexed access to them, use the toolbar's CardViewToolbar.Items property.
Toolbar Item Object
Toolbar items are instances of the CardViewToolbarItem class. It is a descendant of the MenuItem class and so it inherits the following key functionality making a toolbar item appear and behave as a menu item.
Gets a collection that contains the toolbar items of the current toolbar item. Enables you to create hierarchies of nested toolbar items of unlimited depth.
Based on the CardViewToolbarItem.Command property setting, a toolbar item either triggers a standard grid command (that is, data item editing, deletion, creation, etc.) or performs a custom action, if required (this action should be implemented programmatically).
Standard Toolbar Item
To make a toolbar item execute a standard command, set the item's CardViewToolbarItem.Command property to the desired command name listed by the CardViewToolbarCommand enumeration. A standard toolbar item automatically displays the command-related text and image (optional). Clicking a standard toolbar item executes the corresponding grid command.
Example - How to create standard items
The code snippet below demonstrates how to create two standard toolbar items - for the New and Refresh commands - in the markup.