Joshua Gates
Top achievements
Rank 1
Joshua Gates
asked on 12 Nov 2007, 04:22 PM
times all jacked up when loading the scheduler for first time
this seems to happen when i go to the page with the scheduler for the first time...unless i hit the today button..
if the time is say 11:14
the day view will show
6:14
7:14
8:14
9:14
etc....
click on today will have it reset correctly to
6:00
7:00
8:00
9:00
etc
this seems to happen when i go to the page with the scheduler for the first time...unless i hit the today button..
if the time is say 11:14
the day view will show
6:14
7:14
8:14
9:14
etc....
click on today will have it reset correctly to
6:00
7:00
8:00
9:00
etc
4 Answers, 1 is accepted
0
Tim Barton
Top achievements
Rank 2
answered on 12 Nov 2007, 08:43 PM
Hi Joshua,
Had the same problem. You have to use RadScheduler.SelectedDate = Now.Date in Vb or RadScheduler.SelectedDate = DateTime.Today.Date C#
Thanks,
Tim
Had the same problem. You have to use RadScheduler.SelectedDate = Now.Date in Vb or RadScheduler.SelectedDate = DateTime.Today.Date C#
Thanks,
Tim
0
Joshua Gates
Top achievements
Rank 1
answered on 12 Nov 2007, 10:52 PM
well on the page load i am using the RadScheduler.SelectedDate = DateTime.Now
is there a difference between DateTime.Now andDateTime.Today.Date
Joshua
is there a difference between DateTime.Now andDateTime.Today.Date
Joshua
0
Hi,
We were able to replicate the problem locally when we set the SelectedDate property to a date and time. For example, SelectedDate="2007-03-30 14:11". This is because the SelectedDate property should be set to a date only, for example, SelectedDate="2007-03-30". This is not a bug with RadScheduler but we will introduce an exception to be thrown when attempting to set the SelectedDate to the wrong type/format, so developers are notified in advance of a possible problem.
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Joshua Gates
Top achievements
Rank 1
answered on 14 Nov 2007, 03:45 PM
that works thanks