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

Calendar Startdate

3 Answers 86 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Schokoolero50
Top achievements
Rank 1
Schokoolero50 asked on 14 Mar 2011, 11:56 AM

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

3 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 16 Mar 2011, 04:37 PM
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!
0
Schokoolero50
Top achievements
Rank 1
answered on 16 Mar 2011, 04:57 PM

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.

0
Yana
Telerik team
answered on 17 Mar 2011, 03:30 PM
Hello,

I'm glad I could help.

All the best,
Yana
the Telerik team
Tags
DateTimePicker
Asked by
Schokoolero50
Top achievements
Rank 1
Answers by
Yana
Telerik team
Schokoolero50
Top achievements
Rank 1
Share this question
or