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

[Solved] All Day event always start show when create new appointment

4 Answers 162 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lone
Top achievements
Rank 1
Lone asked on 14 Jan 2010, 11:04 AM
I'm going crazy ;-)
I can't figure out how I can disable the default enabled All Day Event on the advanced form.

No matter what I do, then it shows up enabled when I create a new appointment.

I use the Entity Framework as datasource

Please advise !

Thanks
Jan

4 Answers, 1 is accepted

Sort by
0
Adam Wildman
Top achievements
Rank 1
answered on 14 Jan 2010, 04:52 PM
Having very similar problem, I would think that most things you would put in a calendar would have a start and end time and only some things would be all day.  Is there an easy way to make the default event not an all day event?

Adam
0
Adam Wildman
Top achievements
Rank 1
answered on 14 Jan 2010, 05:04 PM
UPDATE: It only does this when you are adding an event while you are in the month view.  The user base of the website will most likely be adding events from this view that are not all day events (makes for adding multiple events during the month at one time easier).  So since the day and week view do this by default I'm assuming this should be relatively easy to adjust...  although that is just an assumption.
0
Lone
Top achievements
Rank 1
answered on 15 Jan 2010, 11:34 AM
My problem is also in the month view. Very annoying !

Please advise Telerik ;-)

Thanks
Jan
0
Peter
Telerik team
answered on 18 Jan 2010, 02:11 PM
Hello guys,

This is the default behavior of RadScheduler, but you can overwrite it by handling FormCreated and setting the start and end time:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
   {
       if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.AdvancedInsert)
       {
           e.Appointment.End = e.Appointment.Start.AddHours(1);
       }
   }


Greetings,
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
Lone
Top achievements
Rank 1
Answers by
Adam Wildman
Top achievements
Rank 1
Lone
Top achievements
Rank 1
Peter
Telerik team
Share this question
or