RadCalendar for ASP .NET version
RadControls for ASP .NET AJAX version |
2.0.2.0 and later
2008.1.415 and later
|
.NET version |
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)
|
Programming language |
C#, VB.NET, JavaScript
|
Browser support |
all supported by RadCalendar for ASP .NET
all browsers supported by RadControls for ASP .NET AJAX
|
PROJECT DESCRIPTION
Sometimes it is convenient not to display the other month days in RadCalendar (ShowOtherMonthsDays="false"). However, this leads to a situation where some calendar views will show a blank first / last row as the other month days would normally occupy the whole row for these months. This project demonstrates how you could customize RadCalendar to display variable calendar rows (hiding the rows that would otherwise show as blank ones).
The functionality is implemented in the server-side OnDayRender event handler for the AutoPostBack calendar and in both the server-side and client-side OnDayRender handlers for the client calendar. The client-side solution also needs to handle the OnCalendarViewChanging client-side event in order to reset the row visibility (set all calendar rows as visible) prior to the execution of the client-side OnDayRender handler.