Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to customize a dashboard layout

$
0
0

The following example demonstrates how to customize a dashboard layout in code.


In this example, the DashboardViewer loads an existing dashboard with the predefined layout form an XML file. The dashboard contains three dashboard items that are placed horizontally side-by-side.

The following steps are performed to create a new layout:

- Three layout items are created to display the existing dashboard items. The weight parameter specifies the layout item size.

- A new layout group is created to display the Grid and Chart dashboard items. The orientation parameter specifies the orientation of layout items within this group.

- A root layout group is created. This group contains the previously created group and the layout item displaying the Range Filter dashboard item.

- The root layout group is assigned to the Dashboard.LayoutRoot property.

See Also:
How to create new Dashboard add a Grid Item to it and bind it to data in code


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>