Block Date

4 posts, 0 answers
  1. Bogice
    Bogice avatar
    30 posts
    Member since:
    Dec 2009

    Posted 18 Jun 2010 Link to this post

    Hi Telerik,
    Is there anyway to block certain days in the future, so that the user can't select them. A small code snip set or small demons project would be much appreciated
    Thank you
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Jun 2010 Link to this post

    Hello,

    Set the RangeMaxDate property of calendar to current date. The code shows how to achieve this.

    Server Code:
     
    protected void Page_Load(object sender, EventArgs e) 
        RadCalendar1.RangeMaxDate = DateTime.Now.Date; 


    -Shinu.
  3. Bogice
    Bogice avatar
    30 posts
    Member since:
    Dec 2009

    Posted 21 Jun 2010 Link to this post

    Hi Shinu,
    Thank you for your reply. I have set the date range for max and min selectable date. How about blocking some days in between? For example the available dates range from now to October except 4th July or Labor Day.
    Bogice
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Jun 2010 Link to this post

    Hi Bogice,

    Refer the code library which demonstrates how to disable the days in calendar.
    Disabling calendar days


    -Shinu.
Back to Top