All docs
V18.2
19.1 (preview)
18.2
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

How to: Combine Multiple Dashboards into a Dashboard with Multiple Tab Pages

This example creates a single merged dashboard from multiple individual dashboards, inserting them as tab pages in a tab container.

To insert a dashboard as a tab page contained in another dashboard, the application should perform the following actions in code:

  1. Load the specified dashboard and check whether it has a tab container.
  2. Copy dashboard data sources and resolve name conflicts. Create a dictionary containing old and new names.
  3. Copy dashboard groups and resolve name conflicts. Create a dictionary containing old and new names.
  4. Copy dashboard items except groups and resolve name conflicts. Create a dictionary containing old and new names. Update data bindings using the data source names dictionary created while resolving the data source name conflicts.
  5. Update the layout. Move the layout root to the tab page as a child node. Item and group names specified as source items for the layout items should be updated if they are changed while resolving name conflicts.

Note

The complete sample project How to combine multiple dashboards into a dashboard with multiple tab pages is available in the DevExpress Examples repository.

In a merged dashboard, you can clean up the data source collection by discovering identical data sources with different names and using the Data Source Browser command button to switch the data source for the selected dashboard item: