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

SelectionChanged event not fired when the user manually enters a date

4 Answers 162 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 31 Aug 2009, 03:13 AM
If the calendar is used to select a date, the SelectionChanged event is fired.  But, if the user manually changes the date by typing in the textbox, the SelectionChanged is not fired until the user leaves the control.  Similar to the standard TextBox control, I would have expected there to be a TextChanged event (could not find one for the DatePicker), or the SelectionChanged event would be fired when the user manually types in a date.  Any way that I can be notified that the date has been changed without the user leaving the control (like a TextBox)?

4 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 01 Sep 2009, 09:17 AM
Hello GEB,

Currently RadDatePicker doesn't support such a functionality. The main idea of the RadDatePicker is to provide a valid DateTime object. For instance, if you type 1, it is not possible for the RadDatePicker to parse it in a valid DateTime value. That's way a SelectionChanged event is not firing.

All the best,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Yolanda
Top achievements
Rank 1
answered on 18 Jan 2011, 10:44 AM
Hello,

I know this is an old post, I have the same "problem" as GEB, so I was wondering if you were planning to change this behavior and launch the event when the user leaves the textBox in the DatePicker.

Thanks
  Yolanda
0
Kaloyan
Telerik team
answered on 20 Jan 2011, 09:31 AM
Hi GEB,

A solution for your case will be using the ParseDateTimeValue property. It will be triggered in every user input in the control.

Greetings,
Kaloyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Tyler
Top achievements
Rank 1
answered on 22 Apr 2013, 03:12 PM
Hello,

I was wondering if there was still no way to change the border from the blue edit mode to a red border with the focus still inside the datePicker box?
Tags
DatePicker
Asked by
GEB
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Yolanda
Top achievements
Rank 1
Tyler
Top achievements
Rank 1
Share this question
or