Displaying recurring Specialslots on RadScheduleView

8 posts, 1 answers
  1. Johan
    Johan avatar
    10 posts
    Member since:
    May 2014

    Posted 08 Dec 2014 Link to this post

    For a customer project we are working with the radscheduleview (Q2 2014).

    We are using specialslots to display slots with different task type. These slots can have a recurrence pattern which is supported by the Slot class.
    We are able to display slots which occur daily every second day for example.

    Where we run into problems is when we want to start using exceptions on the recurrencepattern. For example recurrence should be removed on a specific date.
    For appointments the recurrencerule is used to add/delete exceptions of the recurrencepattern. We would like to be able to do the same for specialslots and are actually supprised that this is not a feature that is supported by the Slot class.

    Is it currently possible possible to add exceptions to Slots or would it be possible too add such a feature?

    Regards,
    Johan Lollinga
    Ideo B.V.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 09 Dec 2014 Link to this post

    Hello Johan,

    Indeed, currently you cannot create exceptions of the recurrent Slots. You can log this feature in our Feedback Portal and we will consider it if there is enough clients' demand.


    Regards,
    Yana
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Johan
    Johan avatar
    10 posts
    Member since:
    May 2014

    Posted 09 Dec 2014 in reply to Yana Link to this post

    Not being able to use exceptions on Specialslots should be considered a bug and not a feature request, everything on a SpecialSlot works the same way as an Appointment, except for the way they are displayed. So why exceptions are a exception to this summularity is in my opinion really big oversight of the SpecialSlot component.

    Regards
    Johan Lollinga
    Ideo B.V.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 09 Dec 2014 Link to this post

    Hello Johan,

    We consider it as a feature request, because Special Slots were initially designed to work in this way - as you noticed, appointments have a RecurrenceRule property which contains the RecurrencePattern and the exceptions associated with the current rule. Slots, on the other hand, have directly the RecurrencePattern property, that's why they do not support exception occurrences.

    I am sorry for any inconvenience caused.

    Regards,
    Yana
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Johan
    Johan avatar
    10 posts
    Member since:
    May 2014

    Posted 15 Dec 2014 in reply to Yana Link to this post

    I understand your position on this point.

    unfortunatly this is a requirement for my current project to be able to have exceptions on SpecialSlots. Would there be a workaround maybe where we don't have to make our own logic for determining which slots are valid for a timerange?

    I know the Scheduleview works with Occurences which are created based on the Appointment recurrence and exception rules. Is there maybe a telerik helper class which could provide a list of occurences based on a lits of appointments with recurrence and exception rules and a given begin and end date.

    Regards,
    Johan Lollinga
  7. Answer
    Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 18 Dec 2014 Link to this post

    Hello Johan,

    Yes there is such a method - it is located in the AppointmentExtensions static class. Please check the following code demonstrating how to get the occurences for given range and from given appointment list:

    var occs = AppointmentExtensions.GetOccurences(this.ScheduleView.AppointmentsSource.Cast<IAppointment>(), new DateSpan(DateTime.Today, DateTime.Today.AddDays(3)));

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Johan
    Johan avatar
    10 posts
    Member since:
    May 2014

    Posted 29 Dec 2014 in reply to Kalin Link to this post

    Thank you for this workaround, this fixed my problem.

    regards,
    Johan Lollinga
  9. Johan
    Johan avatar
    10 posts
    Member since:
    May 2014

    Posted 29 Dec 2014 in reply to Kalin Link to this post

    Thank you,

    This method helped my develop the required functionality.

    Regards,
    Johan Lollinga
Back to Top
UI for WPF is Visual Studio 2017 Ready