Back to Devexpress

SetInitialDashboardStateEventArgs.InitialState Property

dashboard-devexpress-dot-dashboardweb-dot-setinitialdashboardstateeventargs.md

latest4.8 KB
Original Source

SetInitialDashboardStateEventArgs.InitialState Property

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

Declaration

csharp
public DashboardState InitialState { get; set; }
vb
Public Property InitialState As DashboardState

Property Value

TypeDescription
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

csharp
protected void ASPxDashboard1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e) {
    e.InitialState = InitializeDashboardState();
}

asp-net-web-forms-dashboard-save-dashboard-state-to-cookies/CS/WebDashboard_DashboardStateCookies/Default.aspx.cs#L20

csharp
// Applies the initial dashboard state if it exists in cookies:
        e.InitialState = dashboardState;
}

web-forms-dashboard-specify-default-dashboard-state-in-code/CS/WebDashboard_ManualDashboardState/Default.aspx.cs#L12

csharp
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

vb
Protected Sub ASPxDashboard1_SetInitialDashboardState(ByVal sender As Object, ByVal e As SetInitialDashboardStateEventArgs)
    e.InitialState = InitializeDashboardState()
End Sub

asp-net-web-forms-dashboard-save-dashboard-state-to-cookies/VB/WebDashboard_DashboardStateCookies/Default.aspx.vb#L22

vb
' Applies the initial dashboard state if it exists in cookies:
    If Equals(e.DashboardId, "dashboard1") Then e.InitialState = dashboardState
End If

web-forms-dashboard-specify-default-dashboard-state-in-code/VB/WebDashboard_ManualDashboardState/Default.aspx.vb#L15

vb
Protected Sub ASPxDashboard1_SetInitialDashboardState(ByVal sender As Object, ByVal e As SetInitialDashboardStateEventArgs)
    e.InitialState = InitializeDashboardState()
End Sub

See Also

SetInitialDashboardStateEventArgs Class

SetInitialDashboardStateEventArgs Members

DevExpress.DashboardWeb Namespace