Skip to main content

RetrieveVirtualEventEventArgs

Namespace: Wisej.Web.Ext.FullCalendar

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

Provides data for the RetrieveVirtualEvent event.

public class RetrieveVirtualEventEventArgs : EventArgs

The event is requested either by index (EventIndex) or by ID (EventID).

Example:

Returning the requested event from a cache:

private void fullCalendar1_RetrieveVirtualEvent(object sender, RetrieveVirtualEventEventArgs e)
{
// this.cache is your own List<Event>.
e.Event = e.EventID != null
? this.cache.Find(ev => ev.Id == e.EventID)
: this.cache[e.EventIndex];
}

Constructors​

Instance member RetrieveVirtualEventEventArgs(index)​

Initializes a new instance of the RetrieveVirtualEventEventArgs class.

NameTypeDescription
indexInt32The index of the event to retrieve.

Throws:

Instance member RetrieveVirtualEventEventArgs(id)​

Initializes a new instance of the RetrieveVirtualEventEventArgs class.

NameTypeDescription
idStringThe ID of the event to retrieve.

Throws:

Properties​

Instance member Event​

Event: Returns or sets the Event retrieved from the cache.

Value: The Event retrieved from the cache.

The handler must set this property: when it's null, the EventCollection indexer throws an InvalidOperationException.

Instance member EventID​

String: Returns the ID of the Event to retrieve from the cache.

Value: The ID of the Event to retrieve from the cache.

The value is null when the event is requested by index (EventIndex). The calendar requests events by ID when the user clicks, drags or resizes an event.

Instance member EventIndex​

Int32: Returns the index of the Event to retrieve from the cache.

Value: The index of the Event to retrieve from the cache.

The value is 0 when the event is requested by ID; check EventID first.

Used By​

NameDescription
RetrieveVirtualEventEventHandlerRepresents the method that will handle the RetrieveVirtualEvent event.