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

Recurrency doesn't work with ReadOnly Slots

1 Answer 179 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Maxence
Top achievements
Rank 1
Maxence asked on 17 Oct 2011, 02:03 AM
Hi Telerik Team,

i take your demo "Special and read only slots" and just changed the "UpdateReadOnlySlots()" inside "ViewModel.cs" class with the following :

private void UpdateReadOnlySlots()
        {
            this.readOnlySlots.Clear();
            DateTime minDateTime = DateTime.Now.AddDays(-10);
            DateTime maxDateTime = DateTime.Now.AddDays(1);
 
            Slot readOnlyslotmin = new Slot() { Start = DateTime.MinValue, End = minDateTime, IsReadOnly = true };
            Slot readOnlyslotmax = new Slot() { Start = maxDateTime, End = DateTime.MaxValue, IsReadOnly = true };
 
            this.readOnlySlots.Add(readOnlyslotmin);
            this.readOnlySlots.Add(readOnlyslotmax);
        }
in order to authorize edition only for the current day and the 10 past days.

for simple appointments it works, but when trying to create a recurrency appointment (even if taking care that all occurences are not in readonly zone), nothing appear :(
  1. did i miss something or it is an error of the composant ?
  2. also, i wonder if your recurrency pattern take care of read only slots or not ? by not permitting user to create a reccurency appointment with some occurences in the readonly zone OR cutting automatically all the occurences that are in readonly slots
  3. one last strange behavior :  when closing the recurrence dialog and returning to the editappointment dialog, the begindate and enddate are disabled => correct but then...when returning to recurrence dialog, removing recurrencerule and returning to the editappointment dialog, the dates are still disabled => not correct.

I will appreciate very much if there is a solution to get both recurrency and readonly slots working together like it's a key feature for our needs

Thanks by advance for your help,

Regards,

Maxence

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 17 Oct 2011, 07:42 AM
Hello Maxence,

This is a known bug and it is already fixed.The fix will be included in the next internal build that will be available for download later today.

Regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Maxence
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or