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

SCheduler changes day after 5PM

4 Answers 29 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aditi
Top achievements
Rank 1
Aditi asked on 21 Aug 2012, 07:34 PM
Hi,

I hvae used rad scheduler in my application. It shows appointment to users.
The workdaystarttime is 8:00 am and workday end time is et to 5:00 PM.

After 5 PM, if user goes to check the calendar for appointment, scheduler changes date to next day.
i.e. If today is August 21st 2012, and I check the calendar for appointments after 5 PM today say at 5:10 PM, scheduler will show me date as August 22nd 2012.

I tried to change workdaystarttime and end time to 00:00:00 and 23:59:00 respectively. However it doesn't work.

How can I fix this issue?

Thanks,
Aditi

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 22 Aug 2012, 04:40 PM
Hi Aditi,

Please, try setting only ShowFullTime="true" for RadScheduler. Does this solve the problem?

Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Aditi
Top achievements
Rank 1
answered on 22 Aug 2012, 06:08 PM
Hi Peter,

No, this doesnt solve my problem. It still goes to next day after 5 PM.
Please check the attached file, I have changed time in my computer to 5 PM and it is showing me today as Thursday Aug 23rd.

Aditi
0
Accepted
Peter
Telerik team
answered on 23 Aug 2012, 03:43 PM
Hello Aditi,

Could you please try the following workaround and let me know if it helps?
protected void Page_Load(object sender, EventArgs e)
   {
       if (!IsPostBack)
       {
           RadScheduler1.SelectedDate = DateTime.Now.Date;
       }
   }
 
   protected void RadScheduler1_NavigationComplete(object sender, Telerik.Web.UI.SchedulerNavigationCompleteEventArgs e)
   {
       if (e.Command == Telerik.Web.UI.SchedulerNavigationCommand.SwitchToSelectedDay)
       {
           if ((RadScheduler1.SelectedDate - DateTime.Now.Date) == new TimeSpan(1, 0, 0, 0))
           {
 
               RadScheduler1.SelectedDate = DateTime.Now.Date;
           }
       }
   }



Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Aditi
Top achievements
Rank 1
answered on 23 Aug 2012, 05:59 PM
Thanks Peter, it worked.
Tags
Scheduler
Asked by
Aditi
Top achievements
Rank 1
Answers by
Peter
Telerik team
Aditi
Top achievements
Rank 1
Share this question
or