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.
- C#
- VB.NET
public class igScheduler : igBase
Public Class igScheduler
Inherits 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
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);
igScheduler(options)
Constructs a new instance of the igScheduler class using the specified options.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);