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

Advanced Insert Form to display start and end time

1 Answer 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Maged
Top achievements
Rank 1
Maged asked on 23 Mar 2010, 09:22 PM
Hey Guys,
I am using a Radscheduler control that edits and Inserts using an advanced custom form.

All works great however I would like to make the start and end time visible in the MonthView because we need user to specify time not only date. Currently if i double click a target slot the advanced insert form appear with only start and end date.

Can you please advise.

Best regards,
Maged

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Mar 2010, 03:43 PM
Hello Maged,

You can set a default Start and End time for the appontment to be inserted in month view using the advanced form by handling FormCreating as follows:
protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
   {
       RadScheduler scheduler1 = (RadScheduler)sender;
       if (scheduler1.SelectedView == SchedulerViewType.MonthView & e.Mode == SchedulerFormMode.AdvancedInsert)
       {
           e.Appointment.Start = e.Appointment.Start.AddHours(8);
           e.Appointment.End = e.Appointment.Start.AddHours(1);
       }
   }


All the best,
Peter
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
Asked by
Maged
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or