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

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

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rashid
Top achievements
Rank 1
rashid asked on 29 Jun 2010, 09:26 AM
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

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 01 Jul 2010, 05:16 PM
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
Tags
General Discussions
Asked by
rashid
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or