Recurrency doesn't work with ReadOnly Slots

2 posts, 0 answers
  1. Maxence
    Maxence avatar
    21 posts
    Member since:
    Aug 2011

    Posted 16 Oct 2011 Link to this post

    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()
                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 };
    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,


  2. Rosi
    Rosi avatar
    2529 posts

    Posted 17 Oct 2011 Link to this post

    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.

    the Telerik team

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

Back to Top