We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Recurrence Binding in MVVM

Thread ID:

Created:

Updated:

Platform:

Replies:

127724 Dec 5,2016 08:34 AM Dec 6,2016 03:16 AM WinRT 2
loading
Tags: SfSchedule
Elie
Asked On December 5, 2016 08:34 AM

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

Elie
Replied On December 5, 2016 08:47 AM

I find

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On December 6, 2016 03:16 AM

Hi Elie,

Thanks for your interest in Syncfusion products.

We glad to know that you have found the solution for binding in MVVM SfSchedule with the recurrence. Please let us know, if you require any further assistance on this.

Regards,
Nijamudeen M.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;