DayPilot - Open-Source Outlook-Like Calendar for ASP.NET
Try the online demo: AJAX-style event creating, moving, resizing, and deleting • Context menu • Day view • Work week view • Week view • PostBack/AJAX/JavaScript event handling • Binding to XmlDataSource, SqlDataSource, DataTable, ArrayList • Custom event formatting • Custom business hours

DayPilot News Blog

Friday, February 03, 2006

DayPilot 1.1 Released

What's new:

1. Server-side events (postback).
You can choose if clicking an event or a free time should run a client javascript or call a postback. Look for these properties:
  • EventClickHandling
  • FreetimeClickHandling
Both can be set to either:
  • JavaScript, or
  • PostBack
The default value is JavaScript to maintain compatibility with previous versions. If you set it to PostBack, it calls the server-side events:
  • EventClick(string eventPK)
  • FreeTimeClick(DateTime start)
2. Improved business hours support. Now there are two modes of how business hours work (see NonBusinessHours property):
  • AlwaysVisible: Shows all hours of a day. The business hours will have a different color.
  • HideIfPossible: Shows only the business hours. If there is an event outside of business hours, it automatically extends the visible time span to include these events.
The default value is HideIfPossible to maintain compatibility with previous versions.

3. Support for 12-hour and 24-hour format. Now you can also choose the new 12-hour format (e.g. 1 PM). Set the property TimeFormat to one of the following values:
  • Clock12Hours
  • Clock24Hours
The default value is Clock24Hours to maintain compatibility with previous versions. Remember that this property only affects the hour names in the left column; the format of the time shown in events uses the default culture. The default culture can be set by calling the following code in Page_Load():

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

I am changing the current culture in the demo source code so you can see it in action.

See also:

 

Previous

Archives