How to restrict the entered date

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 02 May 2012 Link to this post


    RadControls version Q1 2012
    .NET version 4.0
    Visual Studio version 2010
    programming language C#
    browser support

    all browsers supported by RadControls

    Setting SelectableDateStart/End allows you to restrict the selection in the Calendar placed in the dropdown of the DateTimePicker.
    The attached project demonstrates how you can restrict the date that a user can type in the input field. In order to achieve this, you should implement the ParseDateTimeValue event and change the result if the entered date is outside of the SelectableDateStart/End.
Back to Top

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