DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot AJAX Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot AJAX Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot AJAX Scheduler
DayPilot » Knowledge Base » How to use DayPilot controls with custom database structure (schema)

How to use DayPilot controls with custom database structure (schema)

Last revision: Feb 18, 2010

DayPilot is designed to work with a custom database schema.

You should map the database fields to event properties using the following properties:

Mapping Custom Database Fields

Any number of custom fields can be mapped using the following property:

The custom fields will be passed with the event through all its lifecycle.

In the server-side event handlers (e.g. BeforeEventRender, EventClick) it's accessible as

In the client-side event handlers (e.g. EventClickJavaScript) it's accessible as

Related

How to make the Calendar events read-only
How to set the time cell colors using database data in the Scheduler
How to copy events using drag&drop (Ctrl key)
How to open a new event dialog using TimeRangeSelected event (modal.js)