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

Telerik.Web.UI.RecurrenceRule.TryParse() in Kendo UI MVC?

2 Answers 226 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Petter Forss
Top achievements
Rank 1
Petter Forss asked on 16 Oct 2013, 01:41 PM
Hi,

We have plans to migrate from ASP.NET Scheduler to KENDO UI MVC Scheduler and we are investigating if there are anything that's missing for this to work.

I cannot find the function to parse a rule in c# Kendo UI.

I need to iterate through the rules occurances to do some business logic.

I am also looking to change the rendering behaviour of the scheduler like done in this post
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/oder-of-entry-in-scheduler.aspx#1155620
Is there a way to do this in Kendo UI?

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 18 Oct 2013, 06:56 AM
Hello Petter,

I'm afraid that neither is supported by the KendoUI Scheduler widget.
As you may be aware the recurrence rules are expanded on the client thus such server side method is not available.
The order in which the events are rendered cannot be changed too.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 2
answered on 07 Nov 2013, 11:28 AM
Not sure if this will fit your need, but we are using the DDay.iCal library for server-side processing of the RecurrenceRule.  In our situation, we needed a way to determine the future dates to show availability.

https://www.nuget.org/packages/DDay.iCal/

            var calendar = new DDay.iCal.iCalendar();
            var calEvent = new DDay.iCal.Event();
            var pattern = new DDay.iCal.RecurrencePattern("FREQ=MONTHLY;BYDAY=3MO");
            calEvent.RecurrenceRules.Add(pattern);
            calEvent.DTStart = new iCalDateTime(DateTime.Today);
            calendar.Events.Add(calEvent);

            
            calEvent.GetOccurrences(DateTime.Today, DateTime.Today.AddYears(2))
                .ToList()
                .ForEach(p => Debug.WriteLine(p.ToString()));
Tags
Scheduler
Asked by
Petter Forss
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Chris
Top achievements
Rank 2
Share this question
or