Skip to main content
All docs
V24.2

DxDashboard.DashboardId Property

Specifies the identifier of the dashboard to be opened in the Dashboard component.

Namespace: DevExpress.DashboardBlazor

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

Declaration

[Parameter]
public string DashboardId { get; set; }

Property Value

Type Description
String

A string that is a dashboard identifier.

Remarks

Use the DashboardIdChanged event to handle a dashboard identifier change.

The following code allows a user to switch between dashboards in a drop-down selection component:

<select id="dashboard-selector" @bind="DashboardIdValue">
    <option value="companies">Companies</option>
    <option value="products">Products</option>
    <option value="support">Support</option>
</select>

<DxDashboard style="height: 600px" Endpoint="@endpoint" @bind-DashboardId="@DashboardIdValue">
</DxDashboard>

@code {
    string endpoint = "api/dashboard";
    public string DashboardIdValue { get; set; } = "companies";
}
See Also