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

Figuring out days in a recurrence?

7 Answers 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 17 Dec 2008, 09:31 PM
Hello,

If I have a recurring appointment from november to march, is it possible to figure out which days it recurs in the month of december?  Say this is the range of dates that get picked up in the recurrence:

11/1/2008 9:00 AM
11/15/2008 10:00 AM
12/1/2008 9:00 AM
12/15/2008 10:00 AM
1/1/2009 9:00 AM
1/15/2009 10:00 AM

I want to get only the 12/1 and 12/15 dates; can that be done and how?

Thanks.

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Dec 2008, 03:35 PM

For anyone who might need this functionality, please see this forum thread:
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/scheduler-exporting-a-range-of-appointments.aspx


Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 29 Dec 2008, 02:38 PM
Hi,

Thanks for that; is there a way to do it without the use of the Scheduler component?  What I want to do with this is display the appointments in the database in a separate page that doesn't use the scheduler.  Is there a way that some central business component can determine this?

Thanks.
0
Peter
Telerik team
answered on 29 Dec 2008, 04:06 PM

Certainly. In the suggested forum thread, RadScheduler is used to get all recurring master appointments and their recurrence string. However, you can get the recurrence string directly from your data base and adhere to the same approach. Simply use the recurrence string in place of "a.RecurrenceRule.ToString()".


Happy holidays!

Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 29 Dec 2008, 04:19 PM
Hello,

Thanks for that; I was aware of that since I started the thread :-;.  But the issue is I don't want to use the Scheduler because I'm working in a business component; rather, I'd like to use some other component and avoid using the scheduler if possible.  Is it possible?

Thanks.
0
Peter
Telerik team
answered on 29 Dec 2008, 04:28 PM

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

Is this something that can help you get started?


Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 29 Dec 2008, 04:43 PM
Hey,

That helps, thanks.  I figured that would be the approach, using the previous filtering mechanism mentioned.  However, I would like to exclude the RadScheduler altogether, and not define the RadScheduler at all (because it's a business component, and I'd like to use another approach than to bind a local RadScheduler variable and getting the appointments that way).

Excluding the RadScheduler altogether, can this functionality be done?

Thanks.
0
Peter
Telerik team
answered on 30 Dec 2008, 09:32 AM

You don't need a RadScheduler instance, but you need the RadScheduler class to parse the recurrence strings, which you can get from your database directly.


Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Peter
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or