How to exclude a particular datetime occurrence from recurrence pattern in RadScheduler ?

2 posts, 0 answers
  1. rashid
    rashid avatar
    20 posts
    Member since:
    Jul 2008

    Posted 29 Jun 2010 Link to this post

    Hi ,

    I want to exclude a particular datetime occurrence from recurrence pattern.
    For example i have created a recurrence pattern for an appointment which has start date as 1st july ,the recurrence frequency is
    set as Daily and Max occurrence is 4.

    Now the scheduler will display the appointments as :

    1st July                        2nd July                3rd July                    4th July
    Appointment A      Appointment B    Appointment C         Appointment D  

    Note :(In my database i have stored only one record with it's recurrence pattern)

    Now i want to exclude the 2nd July item from my recurrence so that it is not displayed.

    Please let me know if this is possible and how to achieve this.

    Looking forward for your quick response.

    Regards ,
    Rashid Ali
  2. George
    Admin
    George avatar
    1332 posts

    Posted 01 Jul 2010 Link to this post

    Hi rashid,

    To do this you need to get the appointment, whose occurrence you need to delete. Then, you have to delete the time when this occurrence appears.

    The code below demonstrates the above approach:

    appointment.RecurrenceRule.AddException(DateTime.Today);


    I hope this information helps. I will be glad to assist you further.



    Sincerely yours,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top