Back to Devexpress

DxDashboard.InitialDashboardState Property

dashboard-devexpress-dot-dashboardblazor-dot-dxdashboard-0f1daded.md

latest1.6 KB
Original Source

DxDashboard.InitialDashboardState Property

Specifies the state of the dashboard to be loaded to the DxDashboard before the component is rendered.

Namespace : DevExpress.DashboardBlazor

Assembly : DevExpress.Dashboard.v25.2.Blazor.dll

NuGet Package : DevExpress.Blazor.Dashboard

Declaration

csharp
[Parameter]
public string InitialDashboardState { get; set; }
vb
<Parameter>
Public Property InitialDashboardState As String

Property Value

TypeDescription
String

A string value that specifies the dashboard state in JSON format.

|

Remarks

The following code shows how to pass a string that contains a dashboard state in JSON format to the InitialDashboardState property:

razor
<DxDashboard style="height: 800px"
             Endpoint="api/dashboard"
             InitialDashboardId="SalesOverview"
             InitialDashboardState='{"Items":{"gridSalesByState":{"MasterFilterValues":[["Nevada"]]}}}'>
</DxDashboard>

See Also

DxDashboard Class

DxDashboard Members

DevExpress.DashboardBlazor Namespace