I’m trying to pass in a list of integer IDs from within C# by
setting a Telerik.Reporting.ReportParameter.Value. I have tried a number of combinations of object
types, from passing in a string of comma separated values to passing in an
IEnumerable of Integers to no avail. I
have tried using the Array function on Designer side, but no matter what combination
I try, I’m receiving an error that the value for WidgetIDList is invalid. I was wondering what the object should look
like that I set in the C# code, and what I should set the Value in the Telerik
Report Designer for the parameter that will be passed to the stored procedure
to generate results. I’ve gone over the
notes on the website over and over, and looked at a few articles on workarounds posted here, and still haven’t been able to determine a
solution. I would try to pass a string of comma separated values, but our UI relies on the AvailableValues to be set so that it can populate a dropdown list in our UI for the user to select from. I'm wondering if that's what's causing the issue, the validation not liking what I'm passing. Thanks for your assistance.
Parameter being passed in
Name: WidgetIDList
AllowBlank: False
AllowNull: False
AvailableValues: dsGetAllWidgetNames [Telerik.Reporting.SqlDataSource] (This is a SQLDataSource that uses a connection string to call a stored procedure to populate the values.)
DataSource: dsGetAllWidgetNames [Telerik.Reporting.SqlDataSource]
DisplayMember: = Fields.WidgetName
Filters: (No Filters)
Sortings: (No sorting)
ValueMember: = Fields.WidgetID
Mergeable: True
MultiValue: True
Name: WidgetIDList
Text: Widget
Type: Integer
Value:
Visible: True
Parameter to be passed to Stored Procedure to generate results
@WidgetIDList: Telerik.Reporting.SqlDataSourceParameter
DBType: AnsiString
Name: @WidgetIDList
Value:
Parameter being passed in
Name: WidgetIDList
AllowBlank: False
AllowNull: False
AvailableValues: dsGetAllWidgetNames [Telerik.Reporting.SqlDataSource] (This is a SQLDataSource that uses a connection string to call a stored procedure to populate the values.)
DataSource: dsGetAllWidgetNames [Telerik.Reporting.SqlDataSource]
DisplayMember: = Fields.WidgetName
Filters: (No Filters)
Sortings: (No sorting)
ValueMember: = Fields.WidgetID
Mergeable: True
MultiValue: True
Name: WidgetIDList
Text: Widget
Type: Integer
Value:
Visible: True
Parameter to be passed to Stored Procedure to generate results
@WidgetIDList: Telerik.Reporting.SqlDataSourceParameter
DBType: AnsiString
Name: @WidgetIDList
Value: