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

First Displayed Appointment with Recurrence?

4 Answers 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ATS
Top achievements
Rank 1
ATS asked on 25 Jun 2008, 04:01 PM
I would like to default my Scheduler to the first displayed appointment, but am running into some trouble. I created a new appointment on June 17 at 8:30 AM. I went back in and edited it to create a recurring appointment on the first Friday of every month. Since the first Friday of July is July 4, I deleted that occurance. So the first actual displayed appointment on my calendar is on August 1st. No matter what I do (bind scheduler, sort Appointments.ToArray() based on a custom comparer class, etc), the first appointment date always appears at 6/17, even though there is no appointment on that date.

Is there any way I can get the start date and time of the first actual/displayed appointment?

Thanks!

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 27 Jun 2008, 09:08 AM
Hello Justin,

The appointment on 6/17 has become a recurrence master because you are creating the recurrence series from it. It is stored in the appointments collection, but its Visible property is set to false. You need to take this property into account when determining the date of the first appointment.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ATS
Top achievements
Rank 1
answered on 27 Jun 2008, 03:28 PM
That definitely helps, but I'm still not totally there.

If I have just one recurring appointment, occurring on the first Friday of every month, with a start date of 6/17 (which isn't a Friday, thus doesn't show on the calendar), then the RadScheduler.Appointments collection only has the one appointment in it. So I loop through and find the first appointment where Appointment.Visible = True, and come up with nothing.

I need to find out how to get a list of each appointment that will show on the calendar, so I can move the calendar to July, since the first displayed appointment will be July 4. Thoughts?
0
Peter
Telerik team
answered on 01 Jul 2008, 01:55 PM
Hi Justin,

This KB article shows how to list all appointments in RadScheduler, including ocurrences. If I understand you correctly, then you can use it in your case. Also you may find helpful the topic on
Working with Recurring Appointments


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ATS
Top achievements
Rank 1
answered on 01 Jul 2008, 05:27 PM
Oh, perfect - thank you, Peter!
Tags
Scheduler
Asked by
ATS
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
ATS
Top achievements
Rank 1
Peter
Telerik team
Share this question
or