DoCreateEvent Event
Description
Occurs when creating a new event in the data source.
Syntax
Public Event DoCreateEvent( _
ByVal *pEvent* As [CalendarEvent](XtremeCalendarControl~CalendarEvent.md), _
ByRef *NewEventID* As Long, _
ByRef *bResult* As Boolean _
)
Parameters
-
pEvent [out]
Pointer to a CalendarEvent object which describes all data fields for the newly created CalendarEvent. -
NewEventID [in]
Set to the EventID of the newly created CalendarEvent. -
bResult [in]
Set to True if the CalendarEvent was successfully created, False otherwise.
Remarks
Occurs when the CreateEvent and/or CreateEventEx methods are used. You must manually create the event using pEvent and then set NewEventID and bResult after creating the event. The EventAdded event will be called immediately after DoCreateEvent.
This occurs only when a custom data provider is used, allowing the developer to handle and implement a custom method.
Notes:
The Custom data providers include SQLServer, MySql, and Custom. Custom data providers operate in an "unbound" mode. All data must be provided and retrieved to/from the calendar by the developer. All of the "DoXXXX" (i.e. DoCreateEvent) events will be fired when using a custom data provider, and the developer must implement their own functionality for each event. For example, when an event is created using the CreateEvent method, the DoCreateEvent is fired. The developer can then add special code in the DoCreateEvent to add the event to a database or some other custom data source. For all custom data providers, the ConnectionString must contain "Provider=custom".
See Also
- CalendarControl Control
- CreateEvent Method
- CreateEventEx Method
- EventAdded Event
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.