This is a migrated thread and some comments may be shown as answers.

Telerik.Windows.Controls.ScheduleView.TimerRulerItemProxy displayed while populating for Recurrence Appointment

0 Answers 73 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
charan
Top achievements
Rank 1
charan asked on 27 Jun 2011, 11:28 AM
Hi,

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

No answers yet. Maybe you can help?

Tags
ScheduleView
Asked by
charan
Top achievements
Rank 1
Share this question
or