Schedule
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
The schedule component is an event calendar that facilitates almost all the basic Outlook and Google Calendar features, allowing the user to plan and manage appointments and time efficiently.
- C#
- VB.NET
public class Schedule : ej2Base
Public Class Schedule
Inherits ej2Base
The height and width options are always set by the control to fill its client area. When the selectedDate option is a string, it is converted to a JavaScript date before it is passed to the widget.
Constructors
Schedule()
Constructs a new instance of the Schedule class.
Example:
The following example creates a schedule that shows the work week and configures it through the Options object.
var schedule = new Schedule();
schedule.Options.selectedDate = DateTime.Today;
schedule.Options.currentView = "WorkWeek";
schedule.Options.views = new[] { "Day", "WorkWeek", "Month" };
schedule.Dock = DockStyle.Fill;
this.Controls.Add(schedule);
Schedule(options)
Constructs a new instance of the Schedule class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a schedule that shows two appointments in the week view.
var monday = new DateTime(2024, 5, 6);
var schedule = new Schedule(new
{
selectedDate = monday,
currentView = "Week",
eventSettings = new
{
dataSource = new[]
{
new { Id = 1, Subject = "Team meeting", StartTime = monday.AddHours(9), EndTime = monday.AddHours(10) },
new { Id = 2, Subject = "Customer call", StartTime = monday.AddDays(1).AddHours(14), EndTime = monday.AddDays(1).AddHours(15) }
}
}
});
schedule.Dock = DockStyle.Fill;
this.Controls.Add(schedule);