Calendar Startdate

4 posts, 1 answers
  1. Schokoolero50
    Schokoolero50 avatar
    11 posts
    Member since:
    Mar 2011

    Posted 14 Mar 2011 Link to this post

    Hello,

    I'm currently evaluating the trial version of RadControls for WPF 2010_3_1314.

    I have found solutions for my other problems with the RadDateTimePicker, but couldn't find anything on opening the calender to the current date for the WPF version.

    In my window I have a RadDateTimePicker to select the birth-date of a person, bound to the entity selected from a SQL-database.

    When a new person is added it has no birth-date, as this is not a mandatory field.

    In everyday use the calendar will hardly be needed, as it is simpler just to type the birth-date instead of navigating there.

    However it would still be nice to open the calendar to the current date instead of 1/1/1800, the minimum allowed date I have set.

    How can I open the calendar to the current date, without it actually being selected?

    Thanks

  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 16 Mar 2011 Link to this post

    Hello,

    Actually the default behavior of RadDateTimePicker is to show the current month and highlight the date even when SelectableDateStart is set. Can you send us more details about your exact scenario? Thanks

    Kind regards,
    Yana
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Schokoolero50
    Schokoolero50 avatar
    11 posts
    Member since:
    Mar 2011

    Posted 16 Mar 2011 Link to this post

    Hello Yana,

    I'm really sorry for bothering you.

    Do you know that situation? When you write something you can read it again and again and you won't find anything wrong with it, but when you look at it again the next day or let someone else take a look the error just jumps at you.

    Well, this is just what happened to me. I just looked at the code again to find out whether I had actually used SelectableDateStart or something else. The problem was "DisplayDateStart". For some strange reason I had used "DisplayDate" instead, so naturally the control behaved as it was told and displayed that date.

    Thank you for your answer.

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Mar 2011 Link to this post

    Hello,

    I'm glad I could help.

    All the best,
    Yana
    the Telerik team
Back to Top