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

Displaying recurring Specialslots on RadScheduleView

7 Answers 146 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 08 Dec 2014, 12:29 PM
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.

7 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Dec 2014, 09:54 AM
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.

 
0
Johan
Top achievements
Rank 1
answered on 09 Dec 2014, 10:21 AM
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.
0
Yana
Telerik team
answered on 09 Dec 2014, 11:57 AM
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.

 
0
Johan
Top achievements
Rank 1
answered on 15 Dec 2014, 09:37 AM
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
0
Accepted
Kalin
Telerik team
answered on 18 Dec 2014, 07:55 AM
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.

 
0
Johan
Top achievements
Rank 1
answered on 29 Dec 2014, 09:49 AM
Thank you for this workaround, this fixed my problem.

regards,
Johan Lollinga
0
Johan
Top achievements
Rank 1
answered on 29 Dec 2014, 09:50 AM
Thank you,

This method helped my develop the required functionality.

Regards,
Johan Lollinga
Tags
ScheduleView
Asked by
Johan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Johan
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or