Collection was modified, enumeration operation may not execute

5 posts, 2 answers
  1. Hardik
    Hardik avatar
    10 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 Link to this post

    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.
  2. Answer
    Candice
    Candice avatar
    7 posts
    Member since:
    Dec 2014

    Posted 12 Jan 2015 Link to this post

    Your problem is not difficult.I think you can refer to the demo example of"Product Line Sales".
    Hope it will help.
  3. DevCraft banner
  4. Hardik
    Hardik avatar
    10 posts
    Member since:
    Jan 2015

    Posted 14 Jan 2015 in reply to Candice Link to this post

    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.
  5. Answer
    Candice
    Candice avatar
    7 posts
    Member since:
    Dec 2014

    Posted 14 Jan 2015 in reply to Hardik Link to this post

    Hi,Haridk,

    Did you set Autofresh=true?(the property of  parameter)
  6. Hardik
    Hardik avatar
    10 posts
    Member since:
    Jan 2015

    Posted 14 Jan 2015 Link to this post

    Hi Candice,

    AutoRefresh = True worked out.

    Thanks.
Back to Top
DevCraft banner