Hello,
How to binding in MVVM the SfScheduler with the recurrence ?
I have an object who didn't have the Syncfusion.UI.Xaml.Schedule reference
I put a property on my object string RecurrenceRule but i have an exception when I binding the collection
Object reference not set to an instance of an object.
in this stack trace:
at Syncfusion.UI.Xaml.Schedule.ScheduleHelper.InternalRRuleGenerator(RecurrenceProperties RecProp, DateTime AppStartTime, DateTime AppEndTime)
at Syncfusion.UI.Xaml.Schedule.SfSchedule.Add(DateTime key, ScheduleAppointment thing)
at Syncfusion.UI.Xaml.Schedule.SfSchedule.SetProxyAppointments(IEnumerable`1 appointmentcollection)
at Syncfusion.UI.Xaml.Schedule.SfSchedule.AppointmentsChanged(DependencyObject dpo, DependencyPropertyChangedEventArgs arg)
at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Syncfusion.UI.Xaml.Schedule.SfSchedule.CreateAppointmentsForItemsSource()
at Syncfusion.UI.Xaml.Schedule.SfSchedule.SetItemsSource()
at Syncfusion.UI.Xaml.Schedule.SfSchedule.OnItemsSourceChanged(DependencyObject dpo, DependencyPropertyChangedEventArgs args)
I use:
<syncfusion:SfSchedule.AppointmentMapping>
<syncfusion:ScheduleAppointmentMapping AllDayMapping="IsAllDay"
AppointmentBackgroundMapping="Background"
EndTimeMapping="DateFin"
IsRecursiveMapping="EstRecurrent"
RecurrenceRuleMapping="RecurrenceRule"
StartTimeMapping="DateDebut"
SubjectMapping="Titre" />
</syncfusion:SfSchedule.AppointmentMapping>
Best regards