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

Collection was modified, enumeration operation may not execute

4 Answers 324 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Hardik
Top achievements
Rank 1
Hardik asked on 12 Jan 2015, 07:38 AM
I have a tabular report. Report has below casecading parameters.

Country
City

City parameters fills the value based on the country selection. both are database driven.

When I changed the default value of any of these parameters, it gives me below error and filter is not working properly.

"Collection was modified, enumeration operation may not execute"

Please advise. I am new to telerik reporting.

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Accepted
Candice
Top achievements
Rank 1
answered on 12 Jan 2015, 08:06 AM
Your problem is not difficult.I think you can refer to the demo example of"Product Line Sales".
Hope it will help.
0
Hardik
Top achievements
Rank 1
answered on 14 Jan 2015, 06:34 AM
Thanks for the reply. It was very useful input for me. Now my report is working fine but whenever I am modifying parameter values or adding new parameter into the report I am receiving this error at least once. Second time onwards report is working fine.

"Collection was modified, enumeration operation may not execute"

I believe that I don't know the way to refresh the parameters in the report after modification.

Could you please suggest how to refresh the parameters of the report OR report itself after any modification and befor previewing it.

I am using telerik report designer tool.
0
Accepted
Candice
Top achievements
Rank 1
answered on 14 Jan 2015, 06:50 AM
Hi,Haridk,

Did you set Autofresh=true?(the property of  parameter)
0
Hardik
Top achievements
Rank 1
answered on 14 Jan 2015, 06:56 AM
Hi Candice,

AutoRefresh = True worked out.

Thanks.
Tags
Report Designer (standalone)
Asked by
Hardik
Top achievements
Rank 1
Answers by
Candice
Top achievements
Rank 1
Hardik
Top achievements
Rank 1
Share this question
or