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

Is readOnly property of slot not works properly.

1 Answer 63 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
hardik
Top achievements
Rank 1
hardik asked on 28 Mar 2011, 12:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 31 Mar 2011, 09:13 AM
Hi hardik,

Thank you for reporting this bug in RadScheduleView.

We've logged it in our public issue tracking system (PITS), you can track its progress here.
As a token of gratitude for your involvement, I've updated your points.

Greetings,
Yana
the Telerik team
Tags
ScheduleView
Asked by
hardik
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or