or
//Create the calendar |
RadCalendar radCalendar = new RadCalendar(); |
radCalendar.Orientation = Orientation.Horizontal; |
radCalendar.DayNameFormat = Telerik.WinControls.UI.DayNameFormat.Full; |
radCalendar.ShowRowHeaders = false; |
radCalendar.ShowColumnHeaders = true; |
radCalendar.AllowMultipleView = true; |
radCalendar.MultiViewColumns = 2; |
radCalendar.ThemeName = "Office2007Blue"; |
radCalendar.Size = new Size(462, 275); |
radCalendar.SelectionChanged += new EventHandler(radCalendar_SelectionChanged); |
//Create the Calendar Host |
_calendarHost = new ToolStripControlHost(radCalendar); |
_calendarHost.Height = radCalendar.Height; |
_calendarHost.Width = radCalendar.Width; |
//Create the drop down |
_dropDown = new ToolStripDropDown(); |
_dropDown.Width = radCalendar.Width; |
_dropDown.Height = radCalendar.HeaderHeight; |
_dropDown.VisibleChanged += new EventHandler(_dropDown_VisibleChanged); |
_dropDown.Items.Add(_calendarHost); |