Skip to content
DayPilot

DayPilot Pro 5.9

Release date: April 19, 2010

(F) Integrated message bar (Calendar)

DayPilot Calendar is now able to show event messages using an animated message bar.

Silver Theme Example

message red 1 300 message red 2 300

Google Theme Example

message yellow 1 300 message yellow 2 300

This is the original JavaScript for showing client-side messages:

function afterRender(data) {
    if (data) {
        if (data.message) {
            showMessage(data.message + " (id " + data.id + ")");
        }
        else {
            showMessage(data);
        }
    }
}

/* message helpers */

var timeout = null;

function showMessage(text) {
    var messageDiv = document.getElementById("message");
    messageDiv.innerHTML = text;
    messageDiv.style.display = '';
    
    if (timeout) {
        window.clearTimeout(timeout);
    }
    timeout = window.setTimeout('clearMessage()', 4000);
}

function clearMessage() {
    var messageDiv = document.getElementById("message");
    messageDiv.innerHTML = '';
    messageDiv.style.display = 'none';
}

Now you can use much shorter code:

function afterRender(data) {
    if (data) {
        var text = data.message ? (data.message + " (id " + data.id + ")") : data;
        dpc1.message(text, 1000, "#ffffff", "#dc143c"); 
    }
}

You can call .message() method of the DayPilotCalendar object with the following parameters:

DayPilotCalendar.message(html, delay, foreColor, backColor)

Parameters:

(F) CallBack Shortcut Property (Calendar, Scheduler, Month)

callback shadow 361x216

DayPilot 5.9 will give you hints on what properties can be changed during full CallBack Update. The IntelliSense suggestions for CallBack property will show you the list of updateable properties.

The following code:

DayPilotCalendar1.StartDate = DateTime.Today;
DayPilotCalendar1.Update(CallBackUpdateType.Full);

Can be replaced with the following code:

DayPilotCalendar1.CallBack.StartDate = DateTime.Today;
DayPilotCalendar1.Update(CallBackUpdateType.Full);

DayPilot Calendar

DayPilot Month

DayPilot Scheduler

(F) TimeRangeDoubleClick (Month)

Support for double-clicking the time cells.

(F) Control and Shift Key Indicators (Calendar, Scheduler)

EventMove event stores the Ctrl and Shift key status. This allows implementation of drag&drop copy/move operations.

Bug Fixes and Minor Improvements

DayPilot Calendar

DayPilot Month

DayPilot Scheduler

DayPilot Menu

Other Changes