dashboard-devexpress-dot-dashboardweb-dot-setinitialdashboardstateeventargs.md
Gets or sets the initial state of the loaded dashboard.
Namespace : DevExpress.DashboardWeb
Assembly : DevExpress.Dashboard.v25.2.Web.dll
NuGet Package : DevExpress.Web.Dashboard.Common
public DashboardState InitialState { get; set; }
Public Property InitialState As DashboardState
| Type | Description |
|---|---|
| DashboardState |
A DashboardState object containing the initial state of the loaded dashboard.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the InitialState property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
web-forms-dashboard-update-parameter-master-filter-changed/CS/DXApplication33/Default.aspx.cs#L11
protected void ASPxDashboard1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e) {
e.InitialState = InitializeDashboardState();
}
// Applies the initial dashboard state if it exists in cookies:
e.InitialState = dashboardState;
}
protected void ASPxDashboard1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e) {
e.InitialState = InitializeDashboardState();
}
web-forms-dashboard-update-parameter-master-filter-changed/VB/DXApplication33/Default.aspx.vb#L11
Protected Sub ASPxDashboard1_SetInitialDashboardState(ByVal sender As Object, ByVal e As SetInitialDashboardStateEventArgs)
e.InitialState = InitializeDashboardState()
End Sub
' Applies the initial dashboard state if it exists in cookies:
If Equals(e.DashboardId, "dashboard1") Then e.InitialState = dashboardState
End If
Protected Sub ASPxDashboard1_SetInitialDashboardState(ByVal sender As Object, ByVal e As SetInitialDashboardStateEventArgs)
e.InitialState = InitializeDashboardState()
End Sub
See Also
SetInitialDashboardStateEventArgs Class