I am using RadDateInput controls. I need "00/00/00" when focus to that controls. Am using (DisplayDateFormat="dd-MMM-yyyy" DateFormat="MM/dd/yy" ) attributes also.
thanks,
vinoth
3 Answers, 1 is accepted
0
Maria Ilieva
Telerik team
answered on 22 Jul 2011, 09:40 AM
Hello Vinoth,
Note that you could not set 00/00/00 in the DateInput control as it expect valid dates to be entered. RadDateInput assists the user in date and time entry by accepting various
date and time formats and tries to recognize them and convert them into valid
dates. The above mentioned value is not a valid date. However you could set nay valid date on focus of the control using the following:
<scripttype="text/javascript">
function Focus() {
var dateInput = $find("<%= RadDateInput1.ClientID %>");
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
Maria Ilieva
Telerik team
answered on 22 Jul 2011, 09:40 AM
Hello Vinoth,
Note that you could not set 00/00/00 in the DateInput control as it expect valid dates to be entered. RadDateInput assists the user in date and time entry by accepting various
date and time formats and tries to recognize them and convert them into valid
dates. The above mentioned value is not a valid date. However you could set nay valid date on focus of the control using the following:
<scripttype="text/javascript">
function Focus() {
var dateInput = $find("<%= RadDateInput1.ClientID %>");
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!