I am facing with Telerik.Windows.Controls.ScheduleView.TimerRulerItemProxy while populating Recurrence appointment.
I have 3 tables named SqlAppointment,SqlAppointmentRecurrenceRule,SqlExceptions.
2 Models at Client side are :
SqlAppointment using IAppointment interface.
SqlAppointmentRecurrenceRule using IRecurrenceRule interface.
I had all the Pattern Properties (i.e.,Frequency,Interval etc..) in the SqlAppointmentRecurrenceRule model.
So creating new instance on override Onload() function and assigning to the Pattern.
protected
override void OnLoaded(bool isInitialLoad)
{
if (isInitialLoad){
this.pattern = new RecurrencePattern();
this.pattern.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(pattern_PropertyChanged);
}
base.OnLoaded(isInitialLoad);
}
Updating the pattern for each appointment
private RecurrencePattern pattern;
public RecurrencePattern Pattern
{
get
{
if (pattern == null)
this.pattern = new RecurrencePattern();
UpdateRecurrencePattern();
return this.pattern;
}
set
{
this.CopyFrom(this);
}
}
Updating Pattern
public void UpdateRecurrencePattern()
{
pattern.DayOfMonth = this.DayOfMonth;
pattern.DayOrdinal = this.DayOrdinal;
pattern.DaysOfWeekMask = ( RecurrenceDays)this.DaysOfWeek;
pattern.FirstDayOfWeek = (DayOfWeek)this.FirstDayOfWeek;
pattern.Frequency = (RecurrenceFrequency)this.Frequency;
pattern.Interval = this.Interval;
pattern.MaxOccurrences = this.MaxOccurrences;
pattern.MonthOfYear = this.MonthOfYear;
pattern.RecursUntil = this.RecursUntil;
}
.....
....
I have another class called AppointmentCollection Which has interface ObservableCollection<SqlAppointment>
At EntityAdded/EntityRemoved adding/removing appointment.
AppointmentSource is the SqlAppointments (i.e.,public AppointmentCollection SunixAppointments;)
The above explained is the way i had tried to populate the Appointment with ReuccurencePattern.
without Pattern appointments are binded succuessfully.
Please see the attached screenshot for my error.
Could you please provide me the solution for the above issue