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

radDatePicker: Invalid date

3 Answers 187 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 24 Jan 2008, 03:35 PM
If you enter a string such as "abc" in date time picker with Office2007 skin, the border of the control changes color, but "SelectedDateChanged" will not fire. Can I change the behaviour so the event always fire, no matter which value I enter?

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 24 Jan 2008, 04:13 PM
Hi Markus,

SelectedDateChanged would not be fired if the control was initially empty as after entering an invalid date the selection state would be still unchanged i.e. no valid selected date. However, you can handle the client-side OnError event of the DateInput component of the datepicker as demonstrated here in order to detect invalid date entry into the control.


Best wishes,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 25 Jan 2008, 10:47 AM
Thnbaks for information, but I need a server side event. May be it is available the next version of the controls.
0
Petja
Telerik team
answered on 25 Jan 2008, 12:35 PM
Hello Markus,

The SelectedDateChanged is a server-side event but you need to set the RadDatePicker AutoPostBack="true" if you want it to be fired on every date changed so the control postback and fire its handled server-side events.
Let us know if this helps.

Kind regards,
Petja
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
Markus
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Markus
Top achievements
Rank 1
Petja
Telerik team
Share this question
or