The ASPxVerticalGrid stores toolbars in its ASPxVerticalGrid.Toolbars collection. Each toolbar is a VerticalGridToolbar 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 VerticalGridToolbar.Items property.
Toolbar Item Object
Toolbar items are instances of the VerticalGridToolbarItem 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 VerticalGridToolbarItem.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 VerticalGridToolbarItem.Command property to the desired command name listed by the VerticalGridToolbarCommand 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.