Hi!
I get an exception: System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.' when swiping through the appointment series, in day view, and I have mapped exception dates in Xaml
I have one - or more - exception dates stored in the apppointment with the RRule and the following mapping in Xaml:
<syncfusion:ScheduleAppointmentMapping
ColorMapping="AppointmentColour"
EndTimeMapping="EndTime"
EndTimeZoneMapping="EndTimeZone"
IsAllDayMapping="IsAllDay"
LocationMapping="Location"
NotesMapping="Note"
RecurrenceExceptionDatesMapping="RecurrenceExceptionDates"
RecurrenceRuleMapping="RecurrenceRule"
ResourceIdsMapping="ResourceIDs"
StartTimeMapping="StartTime"
StartTimeZoneMapping="StartTimeZone"
SubjectMapping="Name" />
</syncfusion:SfSchedule.AppointmentMapping>
The views display the exception dates just fine, but when I start to swipe back and forth between the days in the day view I get the above error. When I remove the " RecurrenceExceptionDatesMapping" I get no error - but then I obviously get no exceptions to the rule.
I load all appointments before showing the sfschedule control so I have no code running when the control is operating.
Please help.
Regards
Flemming Juul
OS: Windows 11 (preview)
VS: Version 16.11.6
SfSchedule version: 19.2.0.57
Hi SaiGanesh
Thanks for the prompt reply.
I have tried your sample and it does indeed work and I get no exceptions.
I have, however, been digging some more into this and I found that if I set "ShowResourceView" to false (and thus do not show resources), I get no errors when swiping with exception dates.
I know this might be a long shot, but can you verify that you can have view resources and still swipe through appointments with exceptions and not get errors?
Thanks in advance
Regards
Flemming Juul
Hi SaiGanesh,
that is very good news.
Looking forward to the next release.
Regards
Flemming Juul