hi telerik,
I found very strange behavior of schedulerView.I use Slot class to disable particular time.In that I set IsreadOnly property to true.Because of following code 2 hours shows in different color.(As in Image1).But If I click on those readonly area then create appointment dialogBox is opened.I think it should not be done.
Now if i click on appointment in this area and cancel it.Then those readonly area works proparly...I mean Create DialogBox is not open after clicking...
It behaves very differenlty
ObservableAppointmentCollection c = new ObservableAppointmentCollection();
var NonWorkingHours = new ObservableCollection<Slot>();
Slot re = new Slot(DateTime.Now, DateTime.Now.AddHours(2))
{
IsReadOnly = true
};
NonWorkingHours.Add(re);
Appointment o1 = new Appointment();
o1.Start = DateTime.Now;
o1.End = DateTime.Now.AddHours(1);
o1.Subject = "First";
c.Add(o1);
this.XamlRadScheduler.AppointmentsSource = c;
this.XamlRadScheduler.SpecialSlotsSource = NonWorkingHours;
SpecialSlotStyleSelector s = new SpecialSlotStyleSelector();
this.XamlRadScheduler.SpecialSlotStyleSelector = s;
Thanks
Hardik Pancholi
I found very strange behavior of schedulerView.I use Slot class to disable particular time.In that I set IsreadOnly property to true.Because of following code 2 hours shows in different color.(As in Image1).But If I click on those readonly area then create appointment dialogBox is opened.I think it should not be done.
Now if i click on appointment in this area and cancel it.Then those readonly area works proparly...I mean Create DialogBox is not open after clicking...
It behaves very differenlty
ObservableAppointmentCollection c = new ObservableAppointmentCollection();
var NonWorkingHours = new ObservableCollection<Slot>();
Slot re = new Slot(DateTime.Now, DateTime.Now.AddHours(2))
{
IsReadOnly = true
};
NonWorkingHours.Add(re);
Appointment o1 = new Appointment();
o1.Start = DateTime.Now;
o1.End = DateTime.Now.AddHours(1);
o1.Subject = "First";
c.Add(o1);
this.XamlRadScheduler.AppointmentsSource = c;
this.XamlRadScheduler.SpecialSlotsSource = NonWorkingHours;
SpecialSlotStyleSelector s = new SpecialSlotStyleSelector();
this.XamlRadScheduler.SpecialSlotStyleSelector = s;
Thanks
Hardik Pancholi