Show only certain days for a month?

2 posts, 0 answers
  1. Warren
    Warren avatar
    61 posts
    Member since:
    Aug 2013

    Posted 17 Apr 2014 Link to this post

    Hello,

    I need to show the calendar for a month but they have a different way for this. If the first day of the month does not start on a Sunday they need to show the days for the last week of the previous month fill in Sunday, etc. up to the first. And then on the last week of the month if the last day does not land on Saturday they do not want to see any of those days. Is there a way I can hide and show certain days in the calendar?

    Thanks,
    Warren
  2. Abdul Rahim Shaik
    Abdul Rahim Shaik avatar
    5 posts
    Member since:
    Mar 2013

    Posted 18 Apr 2014 in reply to Warren Link to this post

        Hi Warren,

        You can disable the dates that you don't want to select.

        This might be helpful to you..

    RadCalendar calendar;
    RadCalendarDay holiday;
     
    calendar=new RadCalendar();
    holiday = new RadCalendarDay();
    holiday.Date = "yyyy-mm-dd"; // some date you don't want to select
    holiday.IsSelectable = false;
    holiday.ItemStyle.BackColor = System.Drawing.ColorTranslator.FromHtml(Grey);
    Calendar.SpecialDays.Add(holiday);
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top