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

WebScheduler New Appointment Dialog

1 Answer 60 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
d m
Top achievements
Rank 1
d m asked on 16 Dec 2009, 09:27 PM
I am running http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx.

I changed Day start from 08:00 to 06:00.

I double clicked in the 6am time slot and pressed the Options button.

The Start time in the New Appointment dialog is selected as 6:00 AM. However, when I go to select another time, the first option in the list box is 8:00 AM; I expected it to be 6:00 AM. Why is that?

The same behaviour occurs in my test project using a trial version of ASP.NET AJAX Q3 2009.

Thanks






1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Dec 2009, 01:31 PM
Hello DM,

We will expose separte properties that will allow you to control the start and end time of the RadTimePicker controls in the advanced form. Meanwhile, you can use the following workaround:
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 = RadScheduler1.DayStartTime;
            startTime.TimeView.EndTime = RadScheduler1.DayEndTime;
            startTime.TimeView.DataList.DataSource = null;
            startTime.DataBind();
  
            RadTimePicker endTime = e.Container.FindControl("EndTime") as RadTimePicker;
            endTime.TimeView.StartTime = RadScheduler1.DayStartTime;
            endTime.TimeView.EndTime = RadScheduler1.DayEndTime;
            endTime.TimeView.DataList.DataSource = null;
            endTime.DataBind();
        }
    }


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
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
d m
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or