Issue on setting DisplayDate

4 posts, 0 answers
  1. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 13 Jul 2011 Link to this post

    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
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 13 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 13 Jul 2011 Link to this post

    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
  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 14 Jul 2011 Link to this post

    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!

Back to Top