Back to Devexpress

ASPxDashboard.DashboardType Property

dashboard-devexpress-dot-dashboardweb-dot-aspxdashboard-23a77a84.md

latest3.0 KB
Original Source

ASPxDashboard.DashboardType Property

Gets or sets a dashboard created at design time within Visual Studio. This property is in effect only when ASPxDashboard acts as Viewer.

Namespace : DevExpress.DashboardWeb

Assembly : DevExpress.Dashboard.v25.2.Web.WebForms.dll

NuGet Package : DevExpress.Web.Dashboard

Declaration

csharp
[DefaultValue(null)]
public Type DashboardType { get; set; }
vb
<DefaultValue(Nothing)>
Public Property DashboardType As Type

Property Value

TypeDefaultDescription
Typenull

A Type object that is the type of a dashboard to be displayed in the ASPxDashboard.

|

Remarks

The DashboardType property allows you to open the dashboard created at design time within Visual Studio. Note that this property is in effect only when the Web Dashboard acts as the Viewer (ASPxDashboard.WorkingMode is set to WorkingMode.ViewerOnly).

To learn more about different methods of loading a dashboard, see Loading a Dashboard.

Example

The code snippet below shows how to display the dashboard created at design time within Visual Studio in the ASPxDashboard control using the ASPxDashboard.DashboardType property.

csharp
ASPxDashboard1.DashboardType = typeof(Dashboard1);
vb
ASPxDashboard1.DashboardType = GetType(Dashboard1)
aspx
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server" WorkingMode="ViewerOnly" ...>       
</dx:ASPxDashboard>

See Also

DashboardTypeStorage

ASPxDashboard Class

ASPxDashboard Members

DevExpress.DashboardWeb Namespace