diff --git a/AlanJuden.MvcReportViewer.NetCore/CoreHtmlHelpers.cs b/AlanJuden.MvcReportViewer.NetCore/CoreHtmlHelpers.cs
index 76f005e..241b9c8 100644
--- a/AlanJuden.MvcReportViewer.NetCore/CoreHtmlHelpers.cs
+++ b/AlanJuden.MvcReportViewer.NetCore/CoreHtmlHelpers.cs
@@ -36,7 +36,7 @@ public static HtmlString RenderReportViewer(this IHtmlHelper helper, ReportViewe
sb.AppendLine($" ");
}
diff --git a/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs b/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs
index ddc306f..1e3e1fb 100644
--- a/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs
+++ b/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs
@@ -44,7 +44,7 @@ internal void SetParameters(ReportService.ReportParameter[] definedReportParamet
{
foreach (var validValue in definedReportParameter.ValidValues)
{
- reportParameter.ValidValues.Add(validValue.Label, validValue.Value);
+ reportParameter.ValidValues.Add(new ValidValue(validValue.Label, validValue.Value));
}
}
diff --git a/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs b/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs
index 66b181f..0bdd9d9 100644
--- a/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs
+++ b/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs
@@ -11,7 +11,7 @@ public class ReportParameterInfo
public string Name { get; set; }
public string Prompt { get; set; }
public bool MultiValue { get; set; }
- public Dictionary ValidValues { get; set; }
+ public List ValidValues { get; set; }
public List SelectedValues { get; set; }
public ReportService.ParameterTypeEnum Type { get; set; }
public bool PromptUser { get; set; }
@@ -19,8 +19,25 @@ public class ReportParameterInfo
public ReportParameterInfo()
{
- this.ValidValues = new Dictionary();
+ this.ValidValues = new List();
this.SelectedValues = new List();
}
}
+
+ public class ValidValue
+ {
+ public string Label { get; set; }
+ public string Value { get; set; }
+
+ public ValidValue()
+ {
+
+ }
+
+ public ValidValue(string label, string value)
+ {
+ this.Label = label;
+ this.Value = value;
+ }
+ }
}
diff --git a/AlanJuden.MvcReportViewer/HtmlHelperExtensions.cs b/AlanJuden.MvcReportViewer/HtmlHelperExtensions.cs
index 3947575..0fc4e2b 100644
--- a/AlanJuden.MvcReportViewer/HtmlHelperExtensions.cs
+++ b/AlanJuden.MvcReportViewer/HtmlHelperExtensions.cs
@@ -33,7 +33,7 @@ public static MvcHtmlString RenderReportViewer(this HtmlHelper helper, ReportVie
sb.AppendLine($" ");
}
diff --git a/AlanJuden.MvcReportViewer/ReportExportResult.cs b/AlanJuden.MvcReportViewer/ReportExportResult.cs
index 8b1629e..e767b8d 100644
--- a/AlanJuden.MvcReportViewer/ReportExportResult.cs
+++ b/AlanJuden.MvcReportViewer/ReportExportResult.cs
@@ -41,7 +41,7 @@ internal void SetParameters(ReportService.ReportParameter[] definedReportParamet
{
foreach (var validValue in definedReportParameter.ValidValues)
{
- reportParameter.ValidValues.Add(validValue.Label, validValue.Value);
+ reportParameter.ValidValues.Add(new ValidValue(validValue.Label, validValue.Value));
}
}
diff --git a/AlanJuden.MvcReportViewer/ReportParameterInfo.cs b/AlanJuden.MvcReportViewer/ReportParameterInfo.cs
index 309a195..c11afec 100644
--- a/AlanJuden.MvcReportViewer/ReportParameterInfo.cs
+++ b/AlanJuden.MvcReportViewer/ReportParameterInfo.cs
@@ -7,7 +7,7 @@ public class ReportParameterInfo
public string Name { get; set; }
public string Prompt { get; set; }
public bool MultiValue { get; set; }
- public Dictionary ValidValues { get; set; }
+ public List ValidValues { get; set; }
public List SelectedValues { get; set; }
public ReportService.ParameterTypeEnum Type { get; set; }
public bool PromptUser { get; set; }
@@ -15,8 +15,25 @@ public class ReportParameterInfo
public ReportParameterInfo()
{
- this.ValidValues = new Dictionary();
+ this.ValidValues = new List();
this.SelectedValues = new List();
}
}
+
+ public class ValidValue
+ {
+ public string Label { get; set; }
+ public string Value { get; set; }
+
+ public ValidValue()
+ {
+
+ }
+
+ public ValidValue(string label, string value)
+ {
+ this.Label = label;
+ this.Value = value;
+ }
+ }
}
\ No newline at end of file