Date Blur

3 posts, 0 answers
  1. humam
    humam avatar
    4 posts
    Member since:
    Mar 2011

    Posted 16 Apr 2011 Link to this post

    hi, I couldn't know how to blur (cannot be selected anymore dates) and keep today's date and the following dates enabled and can be selected.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 19 Apr 2011 Link to this post


    You can disable the dates in the calendar before today in the following way:

    this.radCalendar1.ElementRender += new Telerik.WinControls.UI.RenderElementEventHandler(radCalendar1_ElementRender);
    this.radCalendar1.SelectedDate = DateTime.Today;

    void radCalendar1_ElementRender(object sender, Telerik.WinControls.UI.RenderElementEventArgs e)
        if (e.Day.Date < DateTime.Today)
            e.Element.Enabled = false;
            e.Element.Enabled = true;

    Hope that helps but let me know if you need further information
  3. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 20 Apr 2011 Link to this post

    Hi humam,

    Richard's solutions is correct. Please let us know if you need any further help.

    Ivan Todorov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top