Todd Bannar
Top achievements
Rank 1
Todd Bannar
asked on 23 Oct 2008, 01:09 PM
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
Thanks
3 Answers, 1 is accepted
0
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:
$find("RadDatePicker1").get_dateInput().set_value("");
Kind regards,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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:
$find("RadDatePicker1").get_dateInput().set_value("");
Kind regards,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Keith Heilveil
Top achievements
Rank 1
answered on 09 Mar 2009, 02:38 PM
I'm trying to do exactly as described.
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).
Any ideas on how to solve this behavior?
Thanks in advance
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).
Any ideas on how to solve this behavior?
Thanks in advance
0
Hello Keith,
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.
I hope this helps.
Sincerely yours,
Pavlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
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.
I hope this helps.
Sincerely yours,
Pavlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.