Skip to content
DayPilot

DayPilot Pro 4.8

Released on May 20, 2008 (build 1425).

Main features

(F69) BeforeCellRender event (DayPilot Dynamic Scheduler)

DayPilot Dynamic Scheduler now supports BeforeCellRender event. It allows you to customize the business hours and/or colors of individual background cells.

Example that shows how to define a lunch break (Demo/Dynamic/Default.aspx.cs):

    protected void DynamicScheduler1_BeforeCellRender(object sender, 
DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e) { if (e.Start.Hour == 13) // lunch break { e.IsBusiness = false; } }

Note: although BeforeCellRender can change IsBusiness status of a cell, the non-business hours hiding (ShowNonBusiness="false") is still driven by BusinessBeginsHour and BusinessEndsHour properties.

(F70) Fast date switching - .refreshCallBack (DayPilot Dynamic Scheduler)

A fast StartDate switching using a special callback method was added to DayPilot Dynamic Scheduler.

It works the same way as in the other controls (DayPilot Calendar, DayPilot Scheduler, and DayPilot Month):

Example of the client-side call:

<a href="javascript:dpsd.refreshCallBack(1);">+1 day</a>

This sends StartDate + 1 day as e.StartDate to the Refresh event handler:

    protected void DynamicScheduler1_Refresh(object sender, DayPilot.Web.Ui.Events.RefreshEventArgs e)
    {
        DynamicScheduler1.StartDate = e.StartDate;
        DynamicScheduler1.DataBind();
        DynamicScheduler1.Update();

    }

(F71) BeforeResHeaderRender event (DayPilot Dynamic Scheduler)

BeforeResHeaderRender allows custom rendering of row headers in DayPilot Dynamic Scheduler:

The following properties can be modified:

Example:

protected void DynamicScheduler1_BeforeResHeaderRender
(object sender, DayPilot.Web.Ui.Events.BeforeHeaderRenderEventArgs e) { if (e.Value == "E") { e.InnerHTML = String.Format("{0}", e.Name); e.BackgroundColor = "#ff8888"; } }

(F72) External Drag&Drop (DayPilot Dynamic Scheduler)

Dragging event from a custom external source (e.g. a list) is supported in DayPilot Dynamic Scheduler:

Fixes and minor improvements

DayPilot Calendar

DayPilot Month

DayPilot Dynamic Scheduler