Changing color of certain dates

5 posts, 0 answers
  1. JD
    JD avatar
    15 posts
    Member since:
    Mar 2011

    Posted 27 Sep 2011 Link to this post

    Hello,

    Can someone please tell me how can we change the color of certain dates in the Raddatepicker control...so say I have a date 2 days after from today that i want to mark red whenever the calendar is opened..how can i do that.

    Any help is much appreciated.Let me know if i need to explain more.

    Thanks
  2. JD
    JD avatar
    15 posts
    Member since:
    Mar 2011

    Posted 27 Sep 2011 Link to this post

    I am following http://www.telerik.com/community/forums/aspnet-ajax/calendar/datepicker-can-i-call-dayrender-event-on-onpopup.aspx this post as this is kind of what i am trying to do ..ie highlight some dates for different months  but the problem with the code in that page is that it works fine but as soon as we select the calendar control the page refreshes ....any suggestions.
  3. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Sep 2011 Link to this post

    Hello Siddharth,

    Try the following code library approach to achieve your scenario.
    Disabling calendar days.

    Thanks,
    Shinu.
  4. JD
    JD avatar
    15 posts
    Member since:
    Mar 2011

    Posted 28 Sep 2011 Link to this post

    Thanks for the reply but i got that thing working by addind my dates as special days and then changed the back color....I was wondering whether there is some property for disabling just weekend dates..i looked around but could'nt find one... I can see weekenddaystyle setting but it is just a style thing..can i disable the dates by some css change..

    Thanks
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Sep 2011 Link to this post

    Hello Siddharth,

    Check the following Code-Library to disable weekend days in RadCalender
    RadCalendar with No Weekend Days

    Thanks,
    Princy.
Back to Top