Question about WeeklyRecurrenceRule

2 posts, 0 answers
  1. Ming Zhao
    Ming Zhao avatar
    44 posts
    Member since:
    Sep 2009

    Posted 18 Jan 2010 Link to this post

    We want to use WeeklyRecurrenceRule to associate with an appointment.

    Can we associate more than one days with the rule of one appointment.  Eg:  the same schedule 10:00 am - 10:30 am happens  both on Wednesday and Friday ?

    Or we we have to create two appointments, one associated with weeklyrecurrencerule of wednesday and another associated wtih weeklyrecurrencerule of Friday to get this done? 

    Do you have something like DaysOfWeekMask of your WPF for Win Control Scheduler also? 


  2. Dobry Zranchev
    Dobry Zranchev avatar
    353 posts

    Posted 20 Jan 2010 Link to this post

    Hello Ming Zhao,

    Thanks for your question. You can set the recurrent rule of the appointment:

    DateTime dtStart = new DateTime(2010, 1, 20, 8, 0, 0);
    DateTime dtEnd = new DateTime(2010, 1, 20, 10, 0, 0);
    Appointment appointment = new Appointment(dtStart, dtEnd, "Meeting", "WPF Meeting", "Room 206");

    appointment.RecurrenceRule = new WeeklyRecurrenceRule(dtStart, dtEnd.AddMonths(2), WeekDays.Wednesday | WeekDays.Friday, 1);


    Write back if you have other questions.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top