Skip to main content
A newer version of this page is available. .

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

  • 2 minutes to read

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:

See Also