Block dates in DateTimePicker

2 posts, 1 answers
  1. rD
    rD avatar
    5 posts
    Member since:
    Sep 2010

    Posted 04 Aug 2011 Link to this post

    Hi!

    I have a datetimepicker installed in my project. I had to set it to where that the available dates (The dates that can be selected) should always be only days starting from today with the time that can be selected also starting from right now. So I set the MinDate to DateTime.Now.

    How can i set it to where it will allow displaying dates older than datetime.now but will only allow dates after DateTime.Now to be entered in the datetime.picker.

    Any suggestions and solutions are much appreciated.

    Thanks
  2. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 10 Aug 2011 Link to this post

    Hello Rd,

    I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this post.

    I hope it helps.

    Kind regards,
    Mira
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top