Back to Devexpress

StaticListLookUpSettings.Values Property

dashboard-devexpress-dot-dashboardcommon-dot-staticlistlookupsettings.md

latest7.2 KB
Original Source

StaticListLookUpSettings.Values Property

Provides access to the list of static values for the dashboard parameter.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
[LocalizableCategory(DataAccessStringId.PropertyGridDataCategoryName)]
public string[] Values { get; set; }
vb
<LocalizableCategory(DataAccessStringId.PropertyGridDataCategoryName)>
Public Property Values As String()

Property Value

TypeDescription
String[]

An array of String values specifying static values for the dashboard parameter.

|

Remarks

Use the StaticListLookUpSettings.Values property to specify the list of static values for the dashboard parameter:

csharp
StaticListLookUpSettings settings = new StaticListLookUpSettings();
settings.Values = new string[] {"Beverages", "Condiments"};
DashboardParameter parameter = new DashboardParameter("Parameter2", typeof(string), "Beverages", "Select a category:", true, settings);
vb
Dim settings As New StaticListLookUpSettings()
settings.Values = New String() {"Beverages", "Condiments"}
Dim parameter As New DashboardParameter("Parameter2", GetType(String), "Beverages", "Select a category:", True, settings)

The following code snippets (auto-collected from DevExpress Examples) contain references to the Values 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.

winforms-dashboard-how-to-manage-dashboard-parameters-in-code/CS/CustomParametersExample/ViewerForm1.cs#L22

csharp
// Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = new string[] { "Alabama", "Ohio", "Utah" };
myDashboardParameter.LookUpSettings = staticListLookUpSettings1;

winforms-dashboard-pass-dashboard-parameters-to-calculated-field-expression-in-code/CS/Dashboard_ParametersAndCalculatedFileds/Form1.cs#L17

csharp
StaticListLookUpSettings settings = new StaticListLookUpSettings();
settings.Values = new string[] { "0.01", "0.05", "0.1" };
DashboardParameter discountValue = new DashboardParameter("discountValue",

winforms-dashboard-pass-dashboard-parameters-to-custom-sql-query-in-code/CS/Dashboard_ParametersAndCustomSQL/Form1.cs#L16

csharp
StaticListLookUpSettings staticSettings = new StaticListLookUpSettings();
staticSettings.Values = new string[] { "2014", "2015", "2016" };
DashboardParameter yearParameter = new DashboardParameter("yearParameter",

wpf-dashboard-how-to-manage-dashboard-parameters-in-code/CS/WPF_Dashboard_CustomParameters/ViewModels/MyViewModel.cs#L26

csharp
// Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = new string[] { "Alabama", "Ohio", "Utah" };
myDashboardParameter.LookUpSettings = staticListLookUpSettings1;

winforms-dashboard-how-to-manage-dashboard-parameters-in-code/VB/CustomParametersExample/ViewerForm1.vb#L25

vb
' Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = New String() {"Alabama", "Ohio", "Utah"}
myDashboardParameter.LookUpSettings = staticListLookUpSettings1

winforms-dashboard-pass-dashboard-parameters-to-calculated-field-expression-in-code/VB/Dashboard_ParametersAndCalculatedFileds/Form1.vb#L18

vb
Dim settings As New StaticListLookUpSettings()
settings.Values = New String() { "0.01", "0.05", "0.1" }
Dim discountValue As New DashboardParameter("discountValue", GetType(Double), 0.05, "Select discount:", True, settings)

winforms-dashboard-pass-dashboard-parameters-to-custom-sql-query-in-code/VB/Dashboard_ParametersAndCustomSQL/Form1.vb#L18

vb
Dim staticSettings As New StaticListLookUpSettings()
staticSettings.Values = New String() { "2014", "2015", "2016" }
Dim yearParameter As New DashboardParameter("yearParameter", GetType(String), "2015", "Select year:", True, staticSettings)

wpf-dashboard-how-to-manage-dashboard-parameters-in-code/VB/WPF_Dashboard_CustomParameters/ViewModels/MyViewModel.vb#L26

vb
' Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = New String() { "Alabama", "Ohio", "Utah" }
myDashboardParameter.LookUpSettings = staticListLookUpSettings1

See Also

Create a Dashboard Parameter in the WinForms Designer

StaticListLookUpSettings Class

StaticListLookUpSettings Members

DevExpress.DashboardCommon Namespace