Back to Devexpress

DxDashboard.DashboardId Property

dashboard-devexpress-dot-dashboardblazor-dot-dxdashboard-791e1e1b.md

latest1.8 KB
Original Source

DxDashboard.DashboardId Property

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

Declaration

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

Property Value

TypeDescription
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:

razor
<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

DxDashboard Class

DxDashboard Members

DevExpress.DashboardBlazor Namespace