ejSchedule
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
An Event calendar that manages the list of various activities like events/appointments.
- C#
- VB.NET
public class ejSchedule : ejBase
Public Class ejSchedule
Inherits ejBase
Constructors
ejSchedule()
Constructs a new instance of the ejSchedule class.
Example:
The following example creates the scheduler and binds it to a list of appointments through the options.
var schedule = new ejSchedule();
schedule.Options.currentView = "week";
schedule.Options.appointmentSettings = new
{
dataSource = appointments,
id = "Id",
subject = "Subject",
startTime = "StartTime",
endTime = "EndTime"
};
schedule.Dock = DockStyle.Fill;
this.Controls.Add(schedule);
ejSchedule(options)
Constructs a new instance of the ejSchedule class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a scheduler that shows the working hours of the month and the appointment clicked by the user.
var schedule = new ejSchedule(new
{
currentView = "month",
currentDate = new DateTime(2025, 12, 1),
startHour = 8,
endHour = 18,
appointmentSettings = new
{
dataSource = appointments,
id = "Id",
subject = "Subject",
startTime = "StartTime",
endTime = "EndTime"
}
});
schedule.Instance.onAppointmentClick += new WidgetEventHandler((s, e) =>
{
AlertBox.Show($"Appointment: {e.Data.appointment.Subject}");
});
schedule.Dock = DockStyle.Fill;
this.Controls.Add(schedule);