RadCalendar for ASP .NET version
RadControls for ASP .NET AJAX version
2.1.0 and later (RadInput 2.1.x and later)
2008.1.415 and later
2.0 (RadCalendar for ASP .NET)
2.0 and later (RadControls for ASP .NET AJAX)
|Visual Studio version
2005/2008 (RadCalendar for ASP .NET)
2005 and later(RadControls for ASP .NET AJAX)
all supported by RadCalendar for ASP .NET
all browsers supported by RadControls for ASP .NET AJAX
The project demonstrates how to modify the RadCalendar
view to show only the week days, i.e. no weekend days. This behavior can be achieved by setting "display:none"
to all unnecessary day and header cells. By the DayRender
server- and client-side events we hide the day cells, by the HeaderCellRender
server-side event we hide the cells from the Sunday and Saturday column headers on initial load and by the client-side event CalendarViewChanged
- the header cells after navigation to another month view. Note that we look for the corresponding header cells by the text of the cell, which depends of the Culture
and the value of the DayNameFormat
property. In the example the calendar has set DayNameFormat="Short"
and page attribute Culture="en-US"
, which means that the headers name for Sunday and Saturday are Sun
. You should change them to the specific week (abbreviated) names which correspond to your RadCalendar