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

CurrentDateTimeText doesn't go to selected value

2 Answers 72 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 01 Feb 2013, 11:16 PM
When I type in a date instead of using the calendar to pick a date, the .SelectedValue doesn't get set.  I'm clicking a button to add the date and I have to put the following in my code to make it work:
  myDatePicker.SelectedValue = Convert.ToDateTime( myDatePicker.CurrentDateTimeText);

FYI: This is working ok in the WPF controls (I use this page in both types of apps).



2 Answers, 1 is accepted

Sort by
0
Accepted
Alek
Telerik team
answered on 06 Feb 2013, 02:48 PM
Hello Dan,

We tried the code you've sent us under WPF and Silverlight and it worked the same way under both platforms. We tried it under version 2012_3_1129.

Still, we are not completely sure did we use it in the same way you are using it. Please, take a look at the attached project is case we've missed something important.

Looking forward for your response.

All the best,
Alek
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
danparker276
Top achievements
Rank 2
answered on 06 Feb 2013, 06:50 PM
I tried to reproduce this now on a test project and couldn't.  I tried to replicated all the controls it's under and everything, but I couldn't see it.  It only happens on my project that's a bit more complicated.  Tried it on the same machine too.  I really don't have time to debug this anymore though.  It's also not that big a deal since the workaround is very easy and I'm moving that application to WPF anyway.
Tags
DatePicker
Asked by
danparker276
Top achievements
Rank 2
Answers by
Alek
Telerik team
danparker276
Top achievements
Rank 2
Share this question
or