|
1 |
| -<!-- default badges list --> |
2 |
| - |
3 |
| -[](https://supportcenter.devexpress.com/ticket/details/T513681) |
4 |
| -[](https://docs.devexpress.com/GeneralInformation/403183) |
5 |
| -[](#does-this-example-address-your-development-requirementsobjectives) |
6 |
| -<!-- default badges end --> |
7 |
| - |
8 |
| -# Dashboard for Web Forms - How to specify a default dashboard state in code |
9 |
| - |
10 |
| - |
11 |
| -The sample illustrates how to specify a [dashboard state](https://docs.devexpress.com/Dashboard/118733/web-dashboard/aspnet-web-forms-dashboard-control/manage-dashboard-state) (such as master filter or parameter values) in code and how to apply this state when loading a dashboard for the first time. |
12 |
| - |
13 |
| -In this example, the [DashboardState](https://docs.devexpress.com/Dashboard/DevExpress.DashboardCommon.DashboardState) object holds the required dashboard state. The [ASPxDashboard.SetInitialDashboardState](https://docs.devexpress.com/Dashboard/DevExpress.DashboardWeb.ASPxDashboard.SetInitialDashboardState) event is used to apply the specified dashboard state when loading a dashboard. |
14 |
| - |
15 |
| -## Files to Review |
16 |
| -* [Default.aspx](./CS/WebDashboard_ManualDashboardState/Default.aspx) (VB: [Default.aspx](./VB/WebDashboard_ManualDashboardState/Default.aspx)) |
17 |
| -* [Default.aspx.cs](./CS/WebDashboard_ManualDashboardState/Default.aspx.cs) (VB: [Default.aspx.vb](./VB/WebDashboard_ManualDashboardState/Default.aspx.vb)) |
18 |
| - |
19 |
| -## Documentation |
20 |
| - |
21 |
| -- [Manage Dashboard State in ASP.NET Web Forms Applications](https://docs.devexpress.com/Dashboard/118733/web-dashboard/aspnet-web-forms-dashboard-control/manage-dashboard-state) |
22 |
| - |
23 |
| -## More Examples |
24 |
| - |
25 |
| -* [ASP.NET MVC Dashboard - How to specify a default dashboard state in code](https://github.com/DevExpress-Examples/asp-net-mvc-dashboard-specify-default-state-in-code) |
26 |
| -* [ASP.NET Core Dashboard Control - How to specify a default dashboard state in code](https://github.com/DevExpress-Examples/aspnet-core-dashboard-specify-default-state-in-code) |
27 |
| -* [WPF Dashboard - How to Set the Initial Dashboard State](https://github.com/DevExpress-Examples/wpf-dashboard-how-to-set-initial-dashboard-state) |
28 |
| -* [WinForms Dashboard - How to Save and Restore the Dashboard State](https://github.com/DevExpress-Examples/winforms-dashboard-save-restore-dashboard-state) |
29 |
| -<!-- feedback --> |
30 |
| -## Does this example address your development requirements/objectives? |
31 |
| - |
32 |
| -[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=web-forms-dashboard-specify-default-dashboard-state-in-code&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=web-forms-dashboard-specify-default-dashboard-state-in-code&~~~was_helpful=no) |
33 |
| - |
34 |
| -(you will be redirected to DevExpress.com to submit your response) |
35 |
| -<!-- feedback end --> |
| 1 | +<!-- default badges list --> |
| 2 | + |
| 3 | +[](https://supportcenter.devexpress.com/ticket/details/T513681) |
| 4 | +[](https://docs.devexpress.com/GeneralInformation/403183) |
| 5 | +[](#does-this-example-address-your-development-requirementsobjectives) |
| 6 | +<!-- default badges end --> |
| 7 | + |
| 8 | +# Dashboard for Web Forms - How to specify a default dashboard state in code |
| 9 | + |
| 10 | + |
| 11 | +The sample illustrates how to specify a [dashboard state](https://docs.devexpress.com/Dashboard/118733/web-dashboard/aspnet-web-forms-dashboard-control/manage-dashboard-state) (such as master filter or parameter values) in code and how to apply this state when loading a dashboard for the first time. |
| 12 | + |
| 13 | +In this example, the [DashboardState](https://docs.devexpress.com/Dashboard/DevExpress.DashboardCommon.DashboardState) object holds the required dashboard state. The [ASPxDashboard.SetInitialDashboardState](https://docs.devexpress.com/Dashboard/DevExpress.DashboardWeb.ASPxDashboard.SetInitialDashboardState) event is used to apply the specified dashboard state when loading a dashboard. |
| 14 | + |
| 15 | +## Files to Review |
| 16 | +* [Default.aspx](./CS/WebDashboard_ManualDashboardState/Default.aspx) (VB: [Default.aspx](./VB/WebDashboard_ManualDashboardState/Default.aspx)) |
| 17 | +* [Default.aspx.cs](./CS/WebDashboard_ManualDashboardState/Default.aspx.cs) (VB: [Default.aspx.vb](./VB/WebDashboard_ManualDashboardState/Default.aspx.vb)) |
| 18 | + |
| 19 | +## Documentation |
| 20 | + |
| 21 | +- [Manage Dashboard State in ASP.NET Web Forms Applications](https://docs.devexpress.com/Dashboard/118733/web-dashboard/aspnet-web-forms-dashboard-control/manage-dashboard-state) |
| 22 | + |
| 23 | +## More Examples |
| 24 | + |
| 25 | +* [ASP.NET MVC Dashboard - How to specify a default dashboard state in code](https://github.com/DevExpress-Examples/asp-net-mvc-dashboard-specify-default-state-in-code) |
| 26 | +* [ASP.NET Core Dashboard Control - How to specify a default dashboard state in code](https://github.com/DevExpress-Examples/aspnet-core-dashboard-specify-default-state-in-code) |
| 27 | +* [WPF Dashboard - How to Set the Initial Dashboard State](https://github.com/DevExpress-Examples/wpf-dashboard-how-to-set-initial-dashboard-state) |
| 28 | +* [WinForms Dashboard - How to Save and Restore the Dashboard State](https://github.com/DevExpress-Examples/winforms-dashboard-save-restore-dashboard-state) |
| 29 | +<!-- feedback --> |
| 30 | +## Does this example address your development requirements/objectives? |
| 31 | + |
| 32 | +[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=web-forms-dashboard-specify-default-dashboard-state-in-code&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=web-forms-dashboard-specify-default-dashboard-state-in-code&~~~was_helpful=no) |
| 33 | + |
| 34 | +(you will be redirected to DevExpress.com to submit your response) |
| 35 | +<!-- feedback end --> |
0 commit comments