Skip to main content
Version: 4.2

SchedulerView

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Displays appointments in day, week, work-week, month, agenda or resource timeline layouts.

public class SchedulerView : Control

Dates are application-local wall-clock values, without browser time-zone conversion. End dates are exclusive. Recurrences expand only within the visible range. Moving or resizing a recurrence detaches that occurrence; all other occurrences retain the rule. Pointer motion stays client-side. Creation, movement and resizing commit after server validation and their cancellable pre-events. Tag objects never leave the server.

Example:

var scheduler = new SchedulerView { Dock = DockStyle.Fill, View = SchedulerViewMode.Week };
scheduler.Appointments.Add(new SchedulerAppointment {
Text = "Planning", Start = DateTime.Today.AddHours(9), End = DateTime.Today.AddHours(10)
});
scheduler.AppointmentCreating += (s, e) => e.Appointment.Text = "New meeting";
Controls.Add(scheduler);

Constructors​

Instance member SchedulerView()​

Initializes an editable weekly scheduler with thirty-minute slots.

Properties​

Instance member AgendaText​

String: Gets or sets the localized override for the "Agenda" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member AllDayText​

String: Gets or sets the localized override for the "All day" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member AllowCreate​

Boolean: Allows pointer range selection to create appointments. (Default: True)

Instance member AllowMove​

Boolean: Allows appointments to move between times and resources. (Default: True)

Instance member AllowResize​

Boolean: Allows appointments to be resized from their trailing edge. (Default: True)

Instance member Appointments​

AppointmentCollection: Owned appointments. Item edits refresh the client automatically.

Instance member CurrentTimeText​

String: Gets or sets the localized override for the "Current time" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member Date​

DateTime: Anchor date used to determine the visible calendar range.

Instance member DayText​

String: Gets or sets the localized override for the "Day" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member EndHour​

Int32: Last visible hour, exclusive, from 1 through 24. (Default: 18)

Instance member MonthText​

String: Gets or sets the localized override for the "Month" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member NewAppointmentText​

String: Gets or sets the initial title of a user-created appointment. (Default: null)

The default is null, which uses the built-in text for the current UI culture. An empty string suppresses the text without disabling the operation. The title is assigned before AppointmentCreating is raised, so the handler can replace it. Changing this property does not rename existing appointments.

Example:

var control = new SchedulerView();
control.NewAppointmentText = "Meeting";
control.NewAppointmentText = null; // Restore the built-in localized text.

Instance member NextPeriodText​

String: Gets or sets the localized override for the "Next period" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member NoAppointmentsText​

String: Gets or sets the localized override for the "No appointments" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member PreviousPeriodText​

String: Gets or sets the localized override for the "Previous period" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member RangeEnd​

DateTime: Exclusive date after the last visible date.

Instance member RangeStart​

DateTime: Inclusive first visible date.

Instance member Resources​

ResourceCollection: Owned resources displayed as timeline rows.

Instance member ResourceText​

String: Gets or sets the localized override for the "Resource" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member ShowCurrentTime​

Boolean: Shows the current time marker using application-local time. (Default: True)

Instance member SlotDuration​

Int32: Slot duration in minutes; a positive divisor of 60. (Default: 30)

Instance member StartHour​

Int32: First visible hour, inclusive, from 0 through 23. (Default: 8)

Instance member TimelineText​

String: Gets or sets the localized override for the "Timeline" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member TodayText​

String: Gets or sets the localized override for the "Today" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member UnassignedText​

String: Gets or sets the localized override for the "Unassigned" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member View​

SchedulerViewMode: Calendar layout. (Default: Week)

Instance member WeekText​

String: Gets or sets the localized override for the "Week" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member WorkWeekText​

String: Gets or sets the localized override for the "Work week" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Methods​

Protected member Dispose(disposing)​

Releases model subscriptions when the control is disposed.

ParameterTypeDescription
disposingBooleantrue to release managed and unmanaged resources; false to release only unmanaged resources.

Instance member GetOccurrences()​

Returns the visible occurrences in chronological order.

Returns: IReadOnlyList<SchedulerAppointmentEventArgs>. Visible occurrence descriptions.

Results retain the source appointment and expanded dates. Rules use the original day of month, clamped to the target month, without cumulative end-of-month drift. Invalid zero or negative appointment durations are ignored until corrected.

Navigates one visible period forward or backward.

ParameterTypeDescription
directionInt32Either -1 for previous or 1 for next.

Protected member OnAppointmentClick(e)​

Raises the AppointmentClick event.

ParameterTypeDescription
eSchedulerAppointmentEventArgsThe event data.

Protected member OnAppointmentCreating(e)​

Raises the AppointmentCreating event.

ParameterTypeDescription
eSchedulerAppointmentChangingEventArgsThe event data.

Protected member OnAppointmentDoubleClick(e)​

Raises the AppointmentDoubleClick event.

ParameterTypeDescription
eSchedulerAppointmentEventArgsThe event data.

Protected member OnAppointmentMoved(e)​

Raises the AppointmentMoved event.

ParameterTypeDescription
eSchedulerAppointmentEventArgsThe event data.

Protected member OnAppointmentMoving(e)​

Raises the AppointmentMoving event.

ParameterTypeDescription
eSchedulerAppointmentChangingEventArgsThe event data.

Protected member OnAppointmentResized(e)​

Raises the AppointmentResized event.

ParameterTypeDescription
eSchedulerAppointmentEventArgsThe event data.

Protected member OnAppointmentResizing(e)​

Raises the AppointmentResizing event.

ParameterTypeDescription
eSchedulerAppointmentChangingEventArgsThe event data.

Protected member OnRangeChanged(e)​

Raises the RangeChanged event.

ParameterTypeDescription
eEventArgsThe event data.

Protected member OnSlotDoubleClick(e)​

Raises the SlotDoubleClick event.

ParameterTypeDescription
eSchedulerSlotEventArgsThe event data.

Protected member OnViewChanged(e)​

Raises the ViewChanged event.

ParameterTypeDescription
eEventArgsThe event data.

Protected member OnWebEvent(e)​

Dispatches browser requests to server validation methods.

ParameterTypeDescription
eWisejEventArgsThe event data.

Protected member OnWebRender(config)​

Renders first-level options and the visible occurrence snapshot.

ParameterTypeDescription
configObjectThe config passed to the operation.

Instance member Today()​

Navigates to the current application date.

Events​

Instance member AppointmentClick​

EventHandler<SchedulerAppointmentEventArgs> Occurs when an appointment is activated.

Instance member AppointmentCreating​

EventHandler<SchedulerAppointmentChangingEventArgs> Occurs before a dragged range becomes an appointment; set Cancel to reject it.

Instance member AppointmentDoubleClick​

EventHandler<SchedulerAppointmentEventArgs> Occurs when an appointment is double-clicked.

Instance member AppointmentMoved​

EventHandler<SchedulerAppointmentEventArgs> Occurs after an occurrence is moved.

Instance member AppointmentMoving​

EventHandler<SchedulerAppointmentChangingEventArgs> Occurs before an occurrence is moved; set Cancel to reject it.

Instance member AppointmentResized​

EventHandler<SchedulerAppointmentEventArgs> Occurs after an occurrence is resized.

Instance member AppointmentResizing​

EventHandler<SchedulerAppointmentChangingEventArgs> Occurs before an occurrence is resized; set Cancel to reject it.

Instance member RangeChanged​

EventHandler<EventArgs> Occurs after the visible date range changes.

Instance member SlotDoubleClick​

EventHandler<SchedulerSlotEventArgs> Occurs when an empty slot is double-clicked or activated with Enter.

Instance member ViewChanged​

EventHandler<EventArgs> Occurs after the calendar layout changes.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.