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

[Solved] RadScheduler1.SelectedDate problem in pageload

1 Answer 148 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sreedevi
Top achievements
Rank 1
sreedevi asked on 14 Apr 2008, 08:02 PM
I want the radscheduler to show specified date appointments instead of todays date. I was doing that like this in page_load event.

If

  Not IsPostBack Then
sDate = DateTime.Parse(Request.QueryString("sDate").ToString())
RadScheduler1.DataSource = CreateDataTable()
RadScheduler1.SelectedDate = sDate
End If

But the problem is with rendering of time headers on the lefthand side of the scheduler. I am seeing the incorrect time header on the scheduler. Not sure whats wrong i am doing

1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 15 Apr 2008, 11:19 AM
Hello sreedevi,

You are probably the SelectedDate to DateTime object that also contains time information. You can work around this by taking only the Date part of your 'sDate' object like this:

RadScheduler1.SelectedDate = sDate.Date

We are aware of this limitation and for the upcoming Q1 release we have modified RadScheduler's behavior to ignore the Time portion of SelectedDate.

All the best,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
sreedevi
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or