Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Calendar > Non mandatory DatePicker showing Today's Date

Non mandatory DatePicker showing Today's Date

Feed from this thread
  • Posted on Oct 19, 2007 (permalink)

    Requirements

    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.

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Calendar > Non mandatory DatePicker showing Today's Date