Data Binding
The Scheduler provides a set of options for binding it to data.
The supported data-binding approaches are:
Model Requirements
The model that binds to the Scheduler extends the ISchedulerEvent
interface, which has the following properties:
C#
public interface ISchedulerEvent
{
//Content Lines
string Title
{
get;
set;
}
string Description
{
get;
set;
}
//Duration
bool IsAllDay
{
get;
set;
}
DateTime Start
{
get;
set;
}
DateTime End
{
get;
set;
}
string StartTimezone
{
get;
set;
}
string EndTimezone
{
get;
set;
}
string RecurrenceRule
{
get;
set;
}
string RecurrenceException
{
get;
set;
}
}
The next table lists the required model properties of the Scheduler and their default values.
Property | Mandatory | Default Value | Description |
---|---|---|---|
Id | Yes | none | The unique model identifier of the Scheduler event. Required for creating, editing, and deleting records. |
Title | Yes | none | The title or subject of the event. |
Start | Yes | none | The starting date and time of the event. |
End | Yes | none | The ending date and time of the event. Must be later than Start. |
RecurrenceRule | No | null | The rule that defines the recurrence pattern. If not provided or set to null, the event is not treated as a recurring event. |
RecurrenceID | No | null | Links an exception or occurrence to its recurring master event. |
RecurrenceException | No | null | A comma-separated list of dates when the recurring event will be skipped. |
IsAllDay | No | false | Indicates whether the event spans the entire day. |
Description | No | empty string ("") | Optional text description of the event. |
When using HtmlHelper Scheduler, the model properties are automatically mapped to camelCase fields on the client.