Hi,
I am using Telerik for WPF, Reporting, Designer and WPF Viewer. This issue is related with Report Designer.
I have test report with a chart. Datasource is connected to my ObjectDataSource with this member signature:
I created report parameter of type string with Multiple=True and available values as array of strings: ["Jan","Feb","Mar"....]
Everything works flawlessly except Design mode. I do not know what to pass in "Configure Design Time Parameters" dialog for months argument - when configuring ObjectDataSource.
I tried:
Jan; Feb
"Jan", "Feb"
This ones gives
System.InvalidCastException: Invalid cast from 'System.String' to 'System.Object[]'.
=Array("Jan","Feb")
["Jan","Feb"]
This ones gives
System.Reflection.TargetInvocationException: Property accessor 'DefaultValues' on object 'Telerik.Reporting.Data.Design.ObjectDataSourceDesigner' threw the following exception:'Index was outside the bounds of the array.' ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
And in this case I cannot even open "Configure" dialog for data source, because it throws the same exception as above and shows message box with text "Index was outside the bounds of the array."
I searched documentation and I cannot find any information how to set design time parameters for object[] ObjectDataSource arguments. Can anyone point me in right direction?
I am using Telerik for WPF, Reporting, Designer and WPF Viewer. This issue is related with Report Designer.
I have test report with a chart. Datasource is connected to my ObjectDataSource with this member signature:
List<
KeyValuePair
<DateTime, Decimal>> GetData(int32 year, Object[] months)
I created report parameter of type string with Multiple=True and available values as array of strings: ["Jan","Feb","Mar"....]
Everything works flawlessly except Design mode. I do not know what to pass in "Configure Design Time Parameters" dialog for months argument - when configuring ObjectDataSource.
I tried:
Jan; Feb
"Jan", "Feb"
This ones gives
System.InvalidCastException: Invalid cast from 'System.String' to 'System.Object[]'.
=Array("Jan","Feb")
["Jan","Feb"]
This ones gives
System.Reflection.TargetInvocationException: Property accessor 'DefaultValues' on object 'Telerik.Reporting.Data.Design.ObjectDataSourceDesigner' threw the following exception:'Index was outside the bounds of the array.' ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
And in this case I cannot even open "Configure" dialog for data source, because it throws the same exception as above and shows message box with text "Index was outside the bounds of the array."
I searched documentation and I cannot find any information how to set design time parameters for object[] ObjectDataSource arguments. Can anyone point me in right direction?