12.2. Calendar

The Calendar control renders a calendar in the default month view mode. You can choose the view from four choices: Month view (default) showing all the days in the month; Year view, showing all the months in the selected year; Decade view, showing all the years in the selected decade; and Century view, showing the years in the selected century.

You only need to define a name for the calendar using the Name property to make it work; other properties allow you to define different behaviors. The following examples will show you how to work with them.

12.2.1. Defining the Date Range

Calendar has the MinDate and MaxDate properties that define the range of allowed dates that can be selected (and shown) in the control. Listing 11-1 ...

Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.