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

Adding a Recurrence

1 Answer 56 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Hilda Kenny
Top achievements
Rank 1
Hilda Kenny asked on 13 Apr 2011, 02:54 PM
hi, if I right click and add recurring item on the header part of the scheduler, it doesn't put the time in?  my version is 2010.2.10.914

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 19 Apr 2011, 11:18 AM
Hi Hilda,

Thank you for writing.

When you create an appointment on the header part, this appointment is treated as an all day event. That is why time is not displayed in the appointments that are in the all-day-header part of the scheduler. However, when you change manually the time of the appointment and set it to a time interval smaller than a day, then the appointment should not be displayed in the header but rather in the appointments area. This behavior is not correct in the version you are using, but is addressed in Q3 2010. In case you do not want to upgrade, you can use the following code snippet as a workaround:
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        this.radScheduler1.AppointmentEditDialogShowing += new EventHandler<AppointmentEditDialogShowingEventArgs>(radScheduler1_AppointmentEditDialogShowing);
    }
 
    void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
    {
        e.AppointmentEditDialog = new MyEditDialog();
    }
}
public class MyEditDialog : EditAppointmentDialog
    protected override void ApplySettingsToEvent(IEvent targetEvent)
    {
        base.ApplySettingsToEvent(targetEvent);
        if (this.RecurrenceSettingsShouldBeSaved())
        {
            targetEvent.Start = this.recurringAppointment.Start;
            targetEvent.End = this.recurringAppointment.End;
            targetEvent.AllDay = false;
        }
    }
}

I hope you find the information provided useful. Feel free to write if you have any additional questions.

Best wishes,
Ivan Todorov
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
Scheduler and Reminder
Asked by
Hilda Kenny
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or