Validation of non mandatory DatePicker control

Thread is closed for posting
1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    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.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

    Browser support

    all supported by RadCalendar for ASP .NET

    all browsers supported by RadControls for ASP .NET AJAX

    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.