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

Issue on setting DisplayDate

3 Answers 48 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Adrian Pay
Top achievements
Rank 1
Adrian Pay asked on 13 Jul 2011, 08:32 AM
Hi,

May I ask if I could pre-set a DateTime value via the DisplayDate on RadCalendar instead of the current local date?

I have tried several methods but none of them is working
(1) calendar.DisplayDate = 'my_wanted_date'
(2) in XAML, I used {Binding DisplayDate} and in ViewModel, I return DisplayDate {get {return my_wanted_date};}

Your help in this matter is much appreciated.

Thanks,
Adrian

3 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 13 Jul 2011, 03:26 PM
Hello Adrian,

I tried both things you mentioned, and they both worked for me. Please refer to the attached project for a sample implementation. Should you continue experiencing this issue, please provide us with a project where we can observe it.

Hope this helps.

Best wishes,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Adrian Pay
Top achievements
Rank 1
answered on 14 Jul 2011, 02:42 AM
Hi Ivo,

Thanks a lot for your prompt response. I have tried your attached project, and  the pre-setting of DisplayDate work fine for navigating the calendar to display Year and Month.

However, Is it possible to pre-set the Today display on the calendar as well? If yes, please kindly help to elaborate on how to do it.

Thanks.
Adrian
0
Ivo
Telerik team
answered on 14 Jul 2011, 03:25 PM
Hello Adrian,

This feature is not supported by the RadCalendar control. However, you can edit the DayTemplate of the RadCalendar and make some dates to look like special ones.

Hope this helps.

Greetings,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Calendar
Asked by
Adrian Pay
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Adrian Pay
Top achievements
Rank 1
Share this question
or