Skip to main content

VirtualEventsNeededEventArgs

Namespace: Wisej.Web.Ext.FullCalendar

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

Provides data for the VirtualEventsNeeded event.

public class VirtualEventsNeededEventArgs : EventArgs

Constructors​

Instance member VirtualEventsNeededEventArgs(startDate, endDate)​

Initializes a new instance of the VirtualEventsNeededEventArgs class with the specified date range.

NameTypeDescription
startDateDateTimeThe starting date/time of the range of events needed by the FullCalendar.
endDateDateTimeThe ending date/time of the range of events needed by the FullCalendar.

Properties​

Instance member EndDate​

DateTime: Returns the ending date/time for the range of events needed by a FullCalendar control in virtual mode.

Value: The date/time at the end of the range of events needed by the FullCalendar control.

The range is the date range displayed by the current view, in local time.

Instance member Events​

IEnumerable<Event>: Returns or sets the set of Event objects to display in the requested range.

The calendar displays only the events that start or end between StartDate and EndDate. Leave it null when there are no events.

Example:

Returning the events of the requested range:

private void fullCalendar1_VirtualEventsNeeded(object sender, VirtualEventsNeededEventArgs e)
{
// this.appointments is your own list of Event objects.
e.Events = this.appointments.Where(a => a.End >= e.StartDate && a.Start <= e.EndDate);
}

Instance member StartDate​

DateTime: Returns the starting date/time for a range of events needed by a FullCalendar control in virtual mode.

Value: The date/time at the start of the range of events needed by the FullCalendar control.

The range is the date range displayed by the current view, in local time.

Used By​

NameDescription
VirtualEventsNeededEventHandlerRepresents the method that will handle the VirtualEventsNeeded event of a FullCalendar.