dashboard-devexpress-dot-dashboardblazor-dot-dxdashboard-791e1e1b.md
Specifies the identifier of the dashboard to be opened in the Dashboard component.
Namespace : DevExpress.DashboardBlazor
Assembly : DevExpress.Dashboard.v25.2.Blazor.dll
NuGet Package : DevExpress.Blazor.Dashboard
[Parameter]
public string DashboardId { get; set; }
<Parameter>
Public Property DashboardId As String
| Type | Description |
|---|---|
| String |
A string that is a dashboard identifier.
|
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