Validation of non mandatory DatePicker control

Thread is closed for posting
1 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 19 Oct 2007 Link to this post

    Requirements

    RadCalendar for ASP .NET version

    RadControls for ASP .NET AJAX version

    2.2.x and later (RadInput 2.1.x 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
    You might have a case in which the date is not required so only when users enter a wrong date, you will have to notify them and stop the form from submitting. For this scenario you will need a way to know if the date is invalid or simply left blank and still be able to validate it, without making the DatePicker field required. The attached project shows you how to achieve the desired functionality with the help of CustomValidator.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.