Hi! I have the following code, but i cant get the muliple values in parameter multi value select to be passed in. What is the correct way to pass an an integer array to my method? Thankx. Below is the code: the method GetManyCustomers takes in int[] .I also put this code in the report constructor.
CustomerFactory f =
new
CustomerFactory();
Telerik.Reporting.ReportParameter param1 =
new
Telerik.Reporting.ReportParameter();
param1.Name =
"CustomerName"
;
param1.Type = Telerik.Reporting.ReportParameterType.Integer;
param1.AllowBlank =
false
;
param1.Text =
"FirstName"
;
param1.Visible =
true
;
param1.MultiValue =
true
;
param1.AvailableValues.DataSource = f.GetCustomerNames();
param1.AvailableValues.ValueMember =
"=Fields.CustomerID"
;
param1.Value = 0;
this
.ReportParameters.Add(param1);
this
.DataSource = f.GetManyCustomers(
new
int
[] { Int32.Parse(
"=Parameters.CustomerName.Value"
) });