This is a migrated thread and some comments may be shown as answers.

Issue with setting multivalue parameter

1 Answer 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 2
Bruno asked on 11 May 2011, 04:32 AM
I am trying to set a multivalue parameter of type Integer programatically with an array of int.
However, I get back an error of "Invalid value of parameter".

I have tried a number of combinations but keep encountering the error.

Where am I going wrong?

1 Answer, 1 is accepted

Sort by
0
Stephan
Telerik team
answered on 16 May 2011, 03:40 PM
Hello Bruno,

A possible reason for the problem can be that you haven't set the MultiValue property of the report parameter to true. There is no problem with assigning an integer array to the Value property and the following code snippet works as expected:

this.ReportParameters[0].Type = ReportParameterType.Integer;
this.ReportParameters[0].MultiValue = true;
this.ReportParameters[0].Value = new int[] { 1, 2, 3 };

Please, check this and let us know if there is still a problem. For further assistance we will need a sample code snippet which reproduces the problem.

Best wishes,
Chavdar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Bruno
Top achievements
Rank 2
Answers by
Stephan
Telerik team
Share this question
or