Multiple Value Parameter

2 posts, 0 answers
  1. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 08 Oct 2012 Link to this post

    Hi friends,

    I have several questions for multiple value parameters
    1. What if I want to hard code the values ? for Example Labels may read "Label 1" , "Label 2" , "Label 3" , "Label 4" But the values would be 1,2,3 and 4 res. Below is what I tried.
      //Report1.Designer.cs : Designer Code behind (to display the report parameter setup that I have)
                  reportParameter2.AllowBlank = false;
                  reportParameter2.AutoRefresh = true;
                  reportParameter2.MultiValue = true;
                  reportParameter2.Name = "Parameter2";
                  reportParameter2.Text = "Checkbox List";
                  reportParameter2.Type = Telerik.Reporting.ReportParameterType.Integer;
                  reportParameter2.Visible = true;
                  this.ReportParameters.Add(reportParameter1);
                  this.ReportParameters.Add(reportParameter2);
       
      // Default.aspx.cs
          public partial class _Default : System.Web.UI.Page
          {
              protected void Page_Load(object sender, EventArgs e)
              {
                  var report = new WebApplication1.Report1();
                  int[] CheckBoxList = { 0, 1 };
                  report.ReportParameters["Parameter2"].MultiValue = true;
                  report.ReportParameters["Parameter2"].Value = CheckBoxList;
                  //report.ReportParameters[1].Value = Gender;
                  ReportViewer1.Report = report;
                  ReportViewer1.RefreshReport();
              }
          }
    2. I can not see the check-boxes with the above scenario ?
    3.  Is there any way so that I can implement the radio button group.As we do doe gender, for example ?
  2. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 09 Oct 2012 Link to this post

    Bump !!!
  3. DevCraft banner
Back to Top