Dashboard for WinForms - Specify Default Parameter Values for the Dashboard Loaded in the WinForms Viewer
This example demonstrates how to specify default parameter values when loading a dashboard.
Handle the SetInitialDashboardState event. Create a DashboardParameterState instance and use its Name
and Value
properties to configure parameter values. Create a DashboardState object and add the specified dashboard parameter to the DashboardState.Parameters collection. Assign the created DashboardState
object to the SetInitialDashboardStateBaseEventArgs.InitialState property to apply specified parameter values when a dashboard is loading.
- How to: Pass a Dashboard Parameter to a Filter String in Code
- How to: Pass a Dashboard Parameter to a Calculated Field's Expression in Code
- How to: Pass a Dashboard Parameter to a Custom SQL Query in Code
- How to: Pass a Hidden Dashboard Parameter to a Custom SQL Query in the WinForms Viewer
- How to: Use Dashboard Parameters with the Expression Format Condition
- How to: Manage Parameters in the WinForms Viewer
- How to: Display the Others Slice in the Pie Chart