Skip to main content

igScheduler

Namespace: Wisej.Web.Ext.Ignite

Assembly: Wisej.Web.Ext.Ignite (4.1.0.0)

The igScheduler control provides a common scheduling solution for presenting and managing time periods and the associated activities.

public class igScheduler : igBase

The client widget defines the getAppointmentsInRange(start, end) function, which returns the appointments that fall in the specified date range as objects with the appointmentId, subject, start, end, location, description, resourceId and recurrence fields. Use CallAsync to invoke it from the server after the widget has been loaded.

Constructors​

Instance member igScheduler()​

Constructs a new instance of the igScheduler class.

Example:

The following example creates a scheduler and configures it through the Options object.

var scheduler = new igScheduler();
scheduler.Options.dataSource = appointments;
scheduler.Options.selectedDate = DateTime.Today;
scheduler.Dock = DockStyle.Fill;
this.Controls.Add(scheduler);

Instance member igScheduler(options)​

Constructs a new instance of the igScheduler class using the specified options.

NameTypeDescription
optionsObjectInitial set of options passed to the igScheduler widget: an anonymous object, a JSON string or a dynamic object.

Example:

The following example creates a scheduler with two appointments and retrieves the appointments of the next seven days from the widget.

var scheduler = new igScheduler(new
{
selectedDate = DateTime.Today,
dataSource = new[]
{
new { subject = "Team meeting", start = DateTime.Today.AddHours(9), end = DateTime.Today.AddHours(10) },
new { subject = "Customer call", start = DateTime.Today.AddHours(14), end = DateTime.Today.AddHours(15) }
}
});
scheduler.Dock = DockStyle.Fill;
this.Controls.Add(scheduler);

// later, i.e. in a button click handler.
var appointments = await scheduler.CallAsync("getAppointmentsInRange", DateTime.Today, DateTime.Today.AddDays(7));
foreach (var appointment in appointments)
this.listBox1.Items.Add(appointment.subject);

Implements​