This example shows how to change a default or user-defined dashboard parameter value in the DashboardControl.CustomParameters
event handler. The effective parameter value is hidden from users. Set the Visible
property to false
to hide the parameter from the Dashboard Parameters dialog.
In this example, the parameterState dashboard parameter with static look-up settings is added to the dashboard. This dashboard parameter is used to filter the data source. The Dashboard Parameters dialog displays the values and enables users to select a parameter value from the list. In the DashboardControl.CustomParameters
event handler, we can change the value supplied by the user before it is passed to the query.
In the result, the value defined in the DashboardControl.CustomParameters
event is in effect.
- MyViewModel.cs (VB: MyViewModel.vb)
- MyDashboardView.xaml.cs (VB: MyDashboardView.xaml.vb)
- MyDashboardView.xaml (VB: MyDashboardView.xaml)
(you will be redirected to DevExpress.com to submit your response)