RadCalendar provides a collection of dynamic templates that customize the presentation of calendar days on a "per day" basis. The templates can contain any type of control or simple image and are particularly useful if you want to implement a scheduler-like interface with extra-information, such as images that illustrate events, links to additional sources, etc. This behavior is supported using the RadCalendar SpecialDays collection of RadCalendarDay objects. RadCalendarDay has a TemplateItem property of type RadHostItem that accepts a Control in the constructor.

In the example below a PictureBox control is created and assigned an image from an ImageList. A new instance of RadHostItem is created passing the picture box in its constructor. Finally we set the TemplateItem property of the special day. When the day is rendered the associated image is displayed in the cell for that day. The example assumes that you have an instance of ImageList on the form populated with at least one image and at least one special day added to the SpecialDays collection of RadCalendar.

Was this article helpful?

/

Give article feedback

Tell us how we can improve this article

Code samples are inaccurate / outdated.
I expected to find other / more information.
There are typos / broken links / broken page elements.
Content is inaccurate / outdated.
Other
By checking this box you consent to Progress contacting you by email about your response on this page.

Community

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.