Is it possible to allow the user to clear the selected date in the calendar? If the user selects a date, there appears to be no way to clear it.
Thanks
3 Answers, 1 is accepted
0
Dimo
Telerik team
answered on 23 Oct 2008, 01:24 PM
Hello Todd,
The selected date of a RadCalendar is cleared when you click once again on it.
If you are referring to clearing the value inside a RadDatePicker, then the selected date, which appears in the control's textbox can be cleared with the following Javascript code:
While, it clears it on the page before the postback, After the postback, the value isn't passed to the control (if I pull selecteddate OR dbselecteddate, I receive the original value. The datepicker is within a control that is LoadControl'd onto the page.
I've ensured I'm not overwriting the value with value from the database as well (disabled that functionality for testing).
I am sending you a small runnable application with the implementation request by you.
Give it a try and see if it works for you or if I am leaving something important.