This is a migrated thread and some comments may be shown as answers.

Show only certain days for a month?

1 Answer 145 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 17 Apr 2014, 07:24 PM
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

1 Answer, 1 is accepted

Sort by
0
Abdul Rahim Shaik
Top achievements
Rank 2
answered on 18 Apr 2014, 11:43 AM
    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);
Tags
Calendar
Asked by
Warren
Top achievements
Rank 1
Answers by
Abdul Rahim Shaik
Top achievements
Rank 2
Share this question
or