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

[Solved] How to Create Every Day & WeekDay Recurring Appointment?

1 Answer 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
imran syed
Top achievements
Rank 1
imran syed asked on 10 Jan 2010, 07:47 PM
Hello,
 
i am new user and trying to get familiar with telerik radscheduler.

Can you please show me how to write a code for weekly & monthly  recurrence for the appointment in a calendar programatically as  i do not want to use the inbuilt data provider  control . I search all your articles and videos but could not find any example related to task i want to do just found one example for hourly appointment on the following url 


 i try to do something similar in asp.net ajax version but could not can you please help .. correct me if am doing something wrong.

Here is my code ...

   Appointment appointment = new Appointment();
        appointment.Start = Convert.ToDateTime("1/8/2010 10:00:00 AM");
        appointment.End = Convert.ToDateTime("1/20/2010 10:30:00 AM");
        appointment.Subject = "Example";

        RecurrenceRange range = new RecurrenceRange(DateTime.Today.AddDays(1).AddHours(9.5), TimeSpan.FromHours(2.5), DateTime.Today.AddMonths(2), Int32.MaxValue);
        WeeklyRecurrenceRule rule = new WeeklyRecurrenceRule(1, RecurrenceDay.Tuesday , range);
        
        

          appointment.RecurrenceRule = rule.ToString();


        RadScheduler1.InsertAppointment(appointment);
        RadScheduler1.DataBind();

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Jan 2010, 04:03 PM
Hello imran,

The help topic you referred to is for WPF RadScheduler. For ASP.NET AJAX RadScheduler, please see this topic on Working with Recurring Appointments:

http://www.telerik.com/help/aspnet-ajax/schedule_serversideworkingwithrecurringappointments.html



Kind regards,
Peter
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.
Tags
Scheduler
Asked by
imran syed
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or