Free Trial Buy Now

Calendar - Custom Day Rendering

Click a highlighted date

October, 2010
SunMonTueWedThuFriSat
39262728293012
403456789
4110111213141516
4217181920212223
4324252627282930
4431123456

Description

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.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.