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

Are there any APIs to get next occurences from the recurrence pattern string

3 Answers 81 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
anand
Top achievements
Rank 1
anand asked on 18 Jul 2011, 02:26 PM
HI,
      What I am trying to do is use the UI of RadSchedulerRecurrenceEditor and save the pattern string into database. Then a windows service will pick this up and update the next occurence into database.
Is there a way to do this?
Are there any APIs that I can use in win service or a console application to get the next occurence from the pattern string?

Thanks & Regards.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Jul 2011, 03:23 PM
Hi Anand,

Yes, you can parse the recurrence rule to get all occurrences. Here are related articles that will help you with this task -

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-display-all-radscheduler-appointments-in-gridview.aspx

http://www.telerik.com/help/aspnet-ajax/scheduler-working-with-recurring-appointments.html


Regards,
Peter
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
anand
Top achievements
Rank 1
answered on 20 Jul 2011, 11:15 AM
Hi Peter,
           I saw the links below. I tried to add reference of Telerik.Web.UI to a an windows service. But it doesn't allow me to do so. It gives a compile time error:-
The referenced assembly "Telerik.Web.UI" could not be resolved because it has a dependency on "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. radschedulertest

I also read a response which had a dll with the RecurrenceEngine separated out into Telerik.Web.UI.RecurrenceEngine.dll. But issue with this dll was that when I tried to parse the RecurrenceRule string it didn't get parsed. All strings that I tried, were created using the web RecurrenceEditor.
I am using Visual Studio 4 Ultimate edition to test this.

It would be great if you can help.
Thanks & Regards.
Anand Ghodake
0
Peter
Telerik team
answered on 20 Jul 2011, 02:35 PM
Hello Anand,

You might need RadScheduler for WinForms for this case. I advise you to start a new thread in the WinForms forums.

All the best,
Peter
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Scheduler
Asked by
anand
Top achievements
Rank 1
Answers by
Peter
Telerik team
anand
Top achievements
Rank 1
Share this question
or