dashboard-devexpress-dot-dashboardcommon-dot-staticlistlookupsettings.md
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
[LocalizableCategory(DataAccessStringId.PropertyGridDataCategoryName)]
public string[] Values { get; set; }
<LocalizableCategory(DataAccessStringId.PropertyGridDataCategoryName)>
Public Property Values As String()
| Type | Description |
|---|---|
| String[] |
An array of String values specifying static values for the dashboard parameter.
|
Use the StaticListLookUpSettings.Values property to specify the list of static values for the dashboard parameter:
StaticListLookUpSettings settings = new StaticListLookUpSettings();
settings.Values = new string[] {"Beverages", "Condiments"};
DashboardParameter parameter = new DashboardParameter("Parameter2", typeof(string), "Beverages", "Select a category:", true, settings);
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.
// Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = new string[] { "Alabama", "Ohio", "Utah" };
myDashboardParameter.LookUpSettings = staticListLookUpSettings1;
StaticListLookUpSettings settings = new StaticListLookUpSettings();
settings.Values = new string[] { "0.01", "0.05", "0.1" };
DashboardParameter discountValue = new DashboardParameter("discountValue",
StaticListLookUpSettings staticSettings = new StaticListLookUpSettings();
staticSettings.Values = new string[] { "2014", "2015", "2016" };
DashboardParameter yearParameter = new DashboardParameter("yearParameter",
// Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = new string[] { "Alabama", "Ohio", "Utah" };
myDashboardParameter.LookUpSettings = staticListLookUpSettings1;
' Parameter values displayed in the look-up editor.
staticListLookUpSettings1.Values = New String() {"Alabama", "Ohio", "Utah"}
myDashboardParameter.LookUpSettings = staticListLookUpSettings1
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)
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)
' 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