|
List<AppointmentData> appData = new List<AppointmentData>();
appData.Add(new AppointmentData
{
Id = 1,
Subject = "Explosion of Betelgeuse Star",
StartTime = new DateTime(2018, 2, 11, 9, 30, 0),
EndTime = new DateTime(2018, 2, 11, 11, 0, 0)
});
appData.Add(new AppointmentData
{
Id = 2,
Subject = "Thule Air Crash Report",
StartTime = new DateTime(2018, 2, 12, 12, 0, 0),
EndTime = new DateTime(2018, 2, 12, 14, 0, 0),
IsAllDay = true
});
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
appData.Add(new AppointmentData
{
Id = 20,
Subject = "Meeting with Core team",
Location = "Office",
StartTime = new DateTime(2018, 2, 16, 12, 0, 0),
EndTime = new DateTime(2018, 2, 16, 14, 0, 0),
RecurrenceRule = "FREQ=WEEKLY;INTERVAL=1;BYDAY=FR"
}); |
|
<ejs-schedule id="schedule" height="550px" currentView="Agenda" selectedDate="new DateTime(2018, 2, 15)">
</e-schedule-eventsettings>
</ejs-schedule> |
|
public System.Collections.Generic.List<AppointmentData> Datasource { get; set; }
public void OnGet()
{
Datasource = new ScheduleData().GetScheduleData().ToList();
} |