RadControls for ASP.NET AJAX By default, RadCalendar lays out its day matrix like an ordinary calendar, with 7 columns (one for each day of the week) and 6 rows (the maximum number of weeks needed in a month). You can change this default layout using two properties: Orientation and MonthLayout.
Horizontal orientation
When Orientation is "RenderInRows" (the default), the days are laid out horizontally, in rows. Three values of the MonthLayout property are designed for showing a single month using this horizontal orientation:
Vertical orientation
When Orientation is "RenderInColumns", the days are laid out vertically, in columns. Three values of the MonthLayout property are designed for showing a single month using this vertical orientation:
Changing the dimensions of the day matrix directly
The dimensions of the day matrix are not limited to the 6 possible values of the MonthLayout property. You can set the number of rows and columns separately using the SingleViewRows and SingleViewColumns properties. For example, the following screen shot shows an entire year in a single matrix on a RadCalendar with SingleViewRows = 7 and SingleViewColumns = 53:
Note |
|---|
When using the SingleViewRows and SingleViewColumns
properties, the day matrix typically does not focus on a single month.
To control the first week that appears in the resulting calendar, set the
FocusedDate property to a day in the first month you want to appear
at the beginning of the calendar. |
See Also