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

Multiple Value Parameter

1 Answer 159 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aarsh
Top achievements
Rank 1
Aarsh asked on 08 Oct 2012, 02:07 PM
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 ?

1 Answer, 1 is accepted

Sort by
0
Aarsh
Top achievements
Rank 1
answered on 09 Oct 2012, 12:20 PM
Bump !!!
Tags
General Discussions
Asked by
Aarsh
Top achievements
Rank 1
Answers by
Aarsh
Top achievements
Rank 1
Share this question
or