First Displayed Appointment with Recurrence?

5 posts, 0 answers
  1. JT
    JT avatar
    49 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2008 Link to this post

    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!
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 27 Jun 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JT
    JT avatar
    49 posts
    Member since:
    Mar 2007

    Posted 27 Jun 2008 Link to this post

    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?
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Jul 2008 Link to this post

    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
  6. JT
    JT avatar
    49 posts
    Member since:
    Mar 2007

    Posted 01 Jul 2008 Link to this post

    Oh, perfect - thank you, Peter!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017