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

recurring load on demand

8 Answers 100 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 25 Sep 2012, 05:09 PM
We are trying to implement load on demand by using the start and end dates of an appointment.  However recurring events that do not have start dates and end dates within the selection period are not being added to the list of events.  Which makes sense.



How do you suggest using recurring events with load on demand?



Thank you,

Craig

8 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 29 Sep 2012, 06:31 AM
Hello Craig,

I would suggest you to use the GetOccurence() method on the appointments in the ScheduleView to get all of the occurrences in a date range.

The next code snippet shows how to use the GetOccurence() method with recurring appointments:
DateTime startTime = DateTime.Now;
Appointment recurringApp = new Appointment()
{
    Subject = "Test Reccurense Appointment",
    Start = startTime,
    End = startTime.AddHours(4),
};
var pattern = new RecurrencePattern()
{
    Frequency = RecurrenceFrequency.Daily,
    MaxOccurrences = 4,
    Interval = 1,
                 
};
recurringApp.RecurrenceRule = new RecurrenceRule(pattern);
this.Appointments = new ObservableCollection<Appointment>()
{
    recurringApp
};
var ocurrences = this.Appointments.GetOccurences(new DateSpan() { Start = new DateTime(2012, 9, 1), End = new DateTime(2012, 10, 1) });

Hope this is helpful.

If you have any other questions feel free to write to us again.

Greetings,
Vladi
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Joe
Top achievements
Rank 1
answered on 04 Oct 2012, 01:11 PM
What I am looking for is more like what is posted on this blog.







http://blogs.telerik.com/blogs/posts/08-08-04/working-with-radscheduler-recurring-appointments-on-sql-server.aspx







using this technique



http://www.telerik.com/community/forums/aspnet-ajax/scheduler/sql-reporting-display-all-recurring-appointments.aspx



Is it valid to use Telerik.Web.UI.RecurrenceEngine.dll against scheduleview data?



A way to use your recurrence engine to have sql server return events within a timeframe and events that have recurrences within the same timeframe.







An example is if I have an event starting on Monday that recurs all week.  If I search from Monday till Friday I will find the Series Event and the scheduleview will generate the recurring events.   However if I search from Tuesday till Friday the Series Event will not be found, therefore the scheduleview will not generate the recurring events.







So what has to happen is similar to that blog post.  I have to be able to search sql server and return the Series Event if one of it's recurring events will be within the load on demand timeframe when the series is not within the timeframe. This is because the recurring events are virtual and built from the Series Event.







Is there a recurrence engine for the radscheduleview that is similar to the one from this blog for the radscheduler?
0
Vladi
Telerik team
answered on 09 Oct 2012, 03:16 PM
Hi Craig,

We looked over the KB and the blog post you sent to us and they described an approach on achieving a slightly different scenario. By using that technique you would be getting all the appointments (including the occurrences of the recurrent appointments) for a defined period, but note that this data can be used for reporting purposes only. You will not be able to bind this data to the ScheduleView AppointmentsSource.
If that is the scenario you're trying to achieve, we will research further whether the approach is applicable to ScheduleView for Silverlight.

I am afraid that we do not have an example which filters recurrent appointments for the VIsibleRange of the ScheduleView. Our latest example demonstrates only how to filter the regular appointments, you can download it from the following thread:
http://www.telerik.com/community/forums/silverlight/scheduleview/cannot-get-scheduleview-to-work-with-domain-service.aspx

Note that RadScheduleView provides built-in UI Virtualization and also you could extend the example not to load recurrent appointments that start after the EndTime of your filtering range.

Hope this helps. If you have any follow-up questions, let us know.


Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joe
Top achievements
Rank 1
answered on 29 Oct 2012, 07:40 PM
Yes,
That is what I would like to achieve.  It is okay if I cannot directly bind to the scheduleview.
I would like a way to expand the occurrences on the server side, either using C# or in sql like the example I quoted does.

Is there an ExpandRecurrence dll for Silverlight?
0
Vladi
Telerik team
answered on 01 Nov 2012, 11:52 AM
Hi Craig,

There isn't a ExpandRecurrence dll for Silverlight but we will research if it is possible to use the ASP.NET one with the Silverlight RadScheduleView control.

We will contact you as soon as we have more information on the case.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yana
Telerik team
answered on 07 Jan 2013, 02:06 PM
Hi Craig,

I am so sorry for the late reply.

We've tested the case and unfortunately the ASP.NET assembly cannot be used to get the recurrent appointments from the ScheduleView for Silverlight database.

We will continue our research on how this could be achieved with RadScheduleView and will write again with more details.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joe
Top achievements
Rank 1
answered on 29 Apr 2014, 02:40 PM
Have you been able to work anything out to allow us to gather the recurring events outside of the ScheduleView control?
0
Yana
Telerik team
answered on 30 Apr 2014, 07:42 AM
Hi Craig,

We have this logged in our Feedback Portal, you can vote for it and track its progress at the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/98110-create-an-example-which-demonstrates-how-to-retrieve-the-recurrent-appointments-f

At the moment we cannot commit to a timeframe for creating this example, however I will raise its priority.

I am sorry for any inconvenience caused.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ScheduleView
Asked by
Joe
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Joe
Top achievements
Rank 1
Yana
Telerik team
Share this question
or