When creating a new Dashboard Designer, you can supply it with a set of toolbars to allow your end-users to perform various operations using a Bar UI.
The Dashboard Designer provides a number of toolbars - main toolbars (such as Home, Data Source and View) and contextual toolbars related to a particular dashboard item (such as Chart Tools and Grid Tools).
Main toolbars contain common dashboard commands allowing you to create a new dashboard and dashboard items, create and edit a new data source, save the created dashboard, etc.
Other toolbars contain commands related to a specific dashboard item. For instance, these commands allow you to apply filtering to dashboard item data, enable the drill-down feature, perform specific layout operations, etc.
To create and initialize toolbars at design time in Visual Studio, click the DashboardDesigner's smart tag. Select Create Bars in the invoked context menu.
This adds the following visual and non-visual components.
If the application already contains toolbars (for instance, from the earlier version of the Dashboard Designer), you can update them by selecting the Update Bars menu item.
If you are upgrading your project to another major release, you should update toolbars.
To create and initialize toolbars in code, use the DashboardDesigner.CreateBars method.
You can obtain an instance of the BarManager using the following code.
using DevExpress.XtraBars; //... BarManager barManager = dashboardDesigner.MenuManager as BarManager;
The Dashboard Designer's toolbar UI contains the following elements.
The table below lists these elements and their descriptions, as well as properties that affect element functionality and appearance.
Bars Library API
Provide access to common and item-specific dashboard commands.
Visual elements (command buttons, editors, submenus, static text, etc.) displayed within the toolbar. A Bar Item link refers to a specific bar item.
Allows end-users to perform drag and drop operations on bars.
Allows end-users to control the visibility of individual links within the toolbar.