VirtualEventsNeededEventArgs
Namespace: Wisej.Web.Ext.FullCalendar
Assembly: Wisej.Web.Ext.FullCalendar (4.1.0.0)
Provides data for the VirtualEventsNeeded event.
- C#
- VB.NET
public class VirtualEventsNeededEventArgs : EventArgs
Public Class VirtualEventsNeededEventArgs
Inherits EventArgs
Constructors
VirtualEventsNeededEventArgs(startDate, endDate)
Initializes a new instance of the VirtualEventsNeededEventArgs class with the specified date range.
| Name | Type | Description |
|---|---|---|
| startDate | DateTime | The starting date/time of the range of events needed by the FullCalendar. |
| endDate | DateTime | The ending date/time of the range of events needed by the FullCalendar. |
Properties
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.
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);
}
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
| Name | Description |
|---|---|
| VirtualEventsNeededEventHandler | Represents the method that will handle the VirtualEventsNeeded event of a FullCalendar. |