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

[Solved] Advanced Form -- Hours

3 Answers 131 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Dec 2009, 04:54 AM
When adding an appointment in the advanced form, I am only able to choose from 8am - 5:30pm.

How do I change this from 00:00 to 23:00?

Can't seem to find the answer to this... I am only interested in the Advanced Form. Thank you.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Dec 2009, 04:24 PM
Hi David,

You can achieve this by handling FormCreated like this:

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) 
    
        if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert)) 
        
            RadTimePicker startTime = e.Container.FindControl("StartTime") as RadTimePicker; 
            startTime.TimeView.StartTime = new TimeSpan(0, 0, 0); 
            startTime.TimeView.EndTime = new TimeSpan(23, 59, 0); 
            startTime.TimeView.DataList.DataSource = null
            startTime.DataBind(); 
        
    }



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.
0
David
Top achievements
Rank 1
answered on 06 Dec 2009, 10:57 PM
Perfect! Thank you!
0
David
Top achievements
Rank 1
answered on 07 Dec 2009, 11:22 PM
A related question: I need the "All Day" checkbox in Advanced Form to be unchecked by default as most of our events have a start and end date/time. How do I do this?

Edit: Nevermind! Found it in one of your guides.

CheckBox allDay = e.Container.FindControl("AllDayEvent"as CheckBox;  
allDay.Checked = false;  

allDay.DataBind();

Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
Peter
Telerik team
David
Top achievements
Rank 1
Share this question
or