Issue with setting multivalue parameter

2 posts, 0 answers
  1. Bruno
    Bruno avatar
    16 posts
    Member since:
    May 2008

    Posted 10 May 2011 Link to this post

    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?
  2. Stephan
    Stephan avatar
    12 posts

    Posted 16 May 2011 Link to this post

    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,
    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
  3. DevCraft banner
Back to Top