Non mandatory DatePicker showing Today's Date
Cancel
The title field is required!
Thread is closed for posting
1
posts,
0
answers
-
63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
1572
posts
Member since:
Oct 2004
Posted 19 Oct 2007
Link to this post
RadCalendar for ASP .NET version
RadControls for ASP .NET AJAX version |
2.2.x and later (RadInput 2.1.1 and later)
2008.1.415 and later
|
.NET version |
2.0 (RadCalendar for ASP .NET)
2.0 and later (RadControls for ASP .NET AJAX)
|
Visual Studio version |
2005/2008 (RadCalendar for ASP .NET)
2005 and later(RadControls for ASP .NET AJAX)
|
Programming language |
JavaScript
|
Browser support |
all supported by RadCalendar for ASP .NET
all browsers supported by RadControls for ASP .NET AJAX
|
PROJECT DESCRIPTION
Sometimes you need RadDateInput to show empty on page load, but show today's date selected on opening the calendar popup. However if that picker is not mandatory, you might want to ensure it can be empty. If user opens the popup, but decides not to pick a date, the SelectedDate (Today's date) will be cleared from the DateInput on moving to other controls in the form. You can achieve that by hooking to onfocusout event (OnBlur event for the AJAX version) of the DateInput and clear the SelectedDate in DatePicker. Project is attached.
-