The ASPxCalendar editor allows you to conditionally change the manner with which you render calendar days. The following events can be handled to customize a day cell appearance and functionality:
-
the DayCellInitialize event occurs before a day cell has been created. This event allows you to specify whether or not the processed day is a weekend day; this event also allows you to change the day text, and set the cell's hyper link and a target;
-
the DayCellCreated event occurs after a day cell has been created. This event allows you to populate the cell with custom controls;
-
the DayCellPrepared event occurs before a day cell has been rendered. This event allows you to customize the cell appearance.
In this demo, a calendar displays information about notes scheduled on October. A list of October notes is stored within an xml file. The DayCellInitialize event is handled to set hyperlinks for calendar days, which correspond to one or more associated notes. A click on a hyperlink sends a callback to the server to obtain the corresponding note information. The obtained information is then displayed within a popup window. The DayCellPrepared event is handled to specify special style settings for the days with notes.