This section explains in detail about the various server-side events available in the ASP.NET Web Forms Scheduler control and the arguments that are available on those events.
The sender parameter of all the server-side events returns the scheduler model details. The Syncfusion.JavaScript.Web.ScheduleEventArgs arguments provide information specific to each event.
The various server-side events and the corresponding arguments of it are as follows.
OnServerBeforeAppointmentCreate
The OnServerBeforeAppointmentCreate event is triggered before the new appointment gets saved. The details of the created appointment can be obtained server-side, as explained in the following table.
Table 1: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerBeforeAppointmentCreate event
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of newly created appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the newly added appointment details.
EventType
string
Returns the Event type detail - 'beforeAppointmentCreate".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerBeforeAppointmentCreate(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the newly creating appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerBeforeAppointmentCreate(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the newly creating appointment detailsDimArguments=e.Arguments("appointment")DimEventType=e.EventTypeEndSubEndClass
OnServerBeforeAppointmentChange
The OnServerBeforeAppointmentChange event is triggered before the edited appointment is being saved. The details of the edited appointment can be obtained server-side, as explained in the following table.
Table 2: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerBeforeAppointmentChange event
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of created appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the edited appointment details.
currentAction
string
Returns the current action detail.Please find the possible current action values are as follows.
</tbody>
</table>
</td>
Name
Description
edit
Returns when updating normal appointment.
editOccurrence
Returns when updating single occurrence from Recurrence series.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerBeforeAppointmentChange(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the editing appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerBeforeAppointmentChange(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the editing appointment detailsDimArguments=e.Arguments("appointment")DimEventType=e.EventTypeEndSubEndClass
## OnServerBeforeAppointmentRemove
The **OnServerBeforeAppointmentRemove** event is triggered before the appointment is being removed from the Scheduler. The details of the deleted appointment can be obtained server-side, as explained in the following table.
_Table 3: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerBeforeAppointmentRemove event_
Name
Type
Description
occurrences
object
Returns the edited occurrence appointment detail.
parentData
object
Returns the edited occurrence parent appointment detail.
ignoreEditedOccurrences
boolean
Returns the value to decide the edited occurrence to be ignored or not while updating the appointment.
EventType
string
Returns the Event type detail - 'beforeAppointmentChange".
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of deleted appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the deleted appointment details.
currentAction
string
Returns the current action detail.
EventType
string
Returns the Event type detail - 'beforeAppointmentRemove".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerBeforeAppointmentRemove(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the deleting appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerBeforeAppointmentRemove(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the deleting appointment detailsDimArguments=e.Arguments("appointment")DimEventType=e.EventTypeEndSubEndClass
## OnServerAppointmentCreated
The **OnServerAppointmentCreated** event is triggered after the new appointment is saved. The details of the new appointment can be obtained server-side, as explained in the following table.
_Table 4: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerAppointmentCreated event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of created appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the newly added appointment details.
requestType
string
Returns the request type detail - 'appointmentSaved".
EventType
string
Returns the Event type detail - 'appointmentCreated".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerAppointmentCreated(objectSender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the created appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamicEventDetails=ArgumentsasDictionary<string,object>;stringRequestType=e.Arguments["requestType"]asstring;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerAppointmentCreated(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the created appointment detailsDimArguments=e.Arguments("appointment")DimRequestType=e.Arguments("requestType")DimEventType=e.EventTypeEndSubEndClass
## OnServerAppointmentChanged
The **OnServerAppointmentChanged** event is triggered after an existing appointment is edited. The details of the edited appointment can be obtained server-side, as explained in the following table.
_Table 5: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerAppointmentChanged event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of edited appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the edited appointment details.
requestType
string
Returns the request type detail - 'appointmentChanged".
currentAction
string
Returns the current action detail - 'edit".
EventType
string
Returns the Event type detail - 'appointmentChanged".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerAppointmentChanged(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the changed appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamicEventDetail=ArgumentsasDictionary<string,object>;stringRequestType=e.Arguments["requestType"]asstring;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerAppointmentChanged(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the changed appointment detailsDimArguments=e.Arguments("appointment")DimRequestType=e.Arguments("requestType")DimEventType=e.EventTypeEndSubEndClass
## OnServerAppointmentRemoved
The **OnServerAppointmentRemoved** event is triggered after the appointment is deleted. The details of the deleted appointment can be obtained server-side, as explained in the following table.
_Table 6: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerAppointmentRemoved event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of edited appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the deleted appointment details.
requestType
string
Returns the request type detail - 'appointmentRemoved".
currentAction
string
Returns the current action detail - 'delete".
EventType
string
Returns the Event type detail - 'appointmentRemoved".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerAppointmentRemoved(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the deleted appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamicEventDetail=ArgumentsasDictionary<string,object>;stringRequestType=e.Arguments["requestType"]asstring;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerAppointmentRemoved(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the deleted appointment detailsDimArguments=e.Arguments("appointment")DimRequestType=e.Arguments("requestType")DimEventType=e.EventTypeEndSubEndClass
## OnServerCellClick
The **OnServerCellClick** event is triggered when a cell is single clicked. The details of the clicked cell can be obtained server-side, as explained in the following table.
_Table 7: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerCellClick event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of clicked cell and its type.
Name
Type
Description
Arguments
object
Returns the clicked cell details.
Name
Type
Description
cellIndex
integer
Returns the selected cell index value - ex: 2.
startTime
string
Returns the selected cell StartTime value - ex: 2018-09-25T05:30:00.000Z.
endTime
string
Returns the selected cell EndTime value - ex: 2018-09-25T06:00:00.000Z.
resources
object
Returns the selected cell resource details -ex:
Name
Type
Description
text
string
Returns the resource name of the clicked cell - ex: Nancy
id
int
Returns the resource id of the clicked cell - ex: 1
groupId
int
Returns the resource groupId of the clicked cell - ex: 1
color
string
Returns the resource color of the clicked cell - ex: #ffaa00
classname
string
Returns the resource classname of the clicked cell - ex: e-childnode
quickString
string
Returns the selected cell quick window display string detail - ex: "Tuesday, September 25, 11:00 AM - 11:30 AM".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerCellClick(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the clicked cell detailsvarCellIndex=e.Arguments["cellIndex"];varStartTime=e.Arguments["startTime"];varEndTime=e.Arguments["endTime"];varResources=e.Arguments["resources"];varQuickString=e.Arguments["quickString"];}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerCellClick(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the clicked cell detailsDimCellIndex=e.Arguments("cellIndex")DimStartTime=e.Arguments("startTime")DimEndTime=e.Arguments("endTime")DimResources=e.Arguments("resources")DimQuickString=e.Arguments("quickString")EndSubEndClass
## OnServerAppointmentClick
The **OnServerAppointmentClick** event is triggered when an appointment is single clicked. The details of the clicked appointment can be obtained server-side, as explained in the following table.
_Table 8: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerAppointmentClick event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of clicked appointment and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
appointment
object
Returns the clicked appointment details.
EventType
string
Returns the Event type detail - 'appointmentClick".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerAppointmentClick(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the clicked appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerAppointmentClick(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the clicked appointment detailsDimArguments=e.Arguments("appointment")DimEventType=e.EventTypeEndSubEndClass
## OnServerMenuItemClick
The **OnServerMenuItemClick** event is triggered when the context menu item or its sub-menu item is clicked. The details of the clicked cell/appointment and selected menu item details can be obtained server-side, as explained in the following table.
_Table 10: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerMenuItemClick event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of clicked menu item details and its type.
Name
Type
Description
Arguments
object
Returns the clicked menu item and its target details.
Name
Type
Description
events
object
Returns the clicked menu item details like text, ID.
targetInfo
object
Returns the clicked menu item details like appointment start and end time details, when clicking on the new appointment option.
TargetDescriptionCellReturns the details of the cell, where the context menu is opened. For example, start and end time and resource (contains the id value of the resources) details.
startTime - 2018-09-27T08:00:00.000Z
endTime - 2018-09-27T08:30:00.000Z
AppointmentReturns the details of the appointment, where the context menu is opened. For example, appointment Id, StartTime, EndTime, Subject and so on.
Id: 1,
StartTime: 2018-09-27T07:30:00.000Z,
EndTime: 2018-09-27T09:30:00.000Z,
Subject: "New Test Event".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerMenuItemClick(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the clicked menu item detailsvarArguments1=e.Arguments["events"]asDictionary<string,object>;dynamiceventlist=Arguments1asDictionary<string,object>;if(eventlist["ID"]=="new"||eventlist["ID"]=="recurrence"||eventlist["ID"]=="today"||eventlist["ID"]=="gotodate"){Arguments=e.Arguments["targetInfo"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;varstartTime=list["startTime"];varendTime=list["endTime"];}if(eventlist["ID"]=="open"||eventlist["ID"]=="delete"){Arguments=e.Arguments["targetInfo"]asDictionary<string,object>;// Here list will hold the clicked appointment detailsdynamiclist=ArgumentsasDictionary<string,object>;}}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerMenuItemClick(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the clicked menu item detailsDimeventlist=e.Arguments("events")Ifeventlist("ID")="new"OrElseeventlist("ID")="recurrence"OrElseeventlist("ID")="today"OrElseeventlist("ID")="gotodate"ThenDimlist=e.Arguments("targetInfo")DimstartTime=list("startTime")DimendTime=list("endTime")EndIfIfeventlist("ID")="open"OrElseeventlist("ID")="delete"Then' Here list will hold the clicked appointment detailsDimlist=e.Arguments("targetInfo")EndIfEndSubEndClass
## OnServerNavigation
The **OnServerNavigation** event is triggered after the schedule view or date is navigated. The details of the navigation can be obtained server-side, as explained in the following table.
_Table 11: Syncfusion.JavaScript.Web.ScheduleEventArgs arguments of OnServerNavigation event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the detail of the Schedule navigation and its type.
Name
Type
Description
Arguments
object
Returns the Schedule view navigation details.
Name
Type
Description
previousView
string
Returns the previous view name".
currentView
string
Returns the current view name".
currentDate
object
Returns the current date value.
requestType
string
Returns the request type details - viewNavigate.
Returns the Schedule date navigation details.
Name
Type
Description
previousDate
string
Returns the previous date value".
currentDate
string
Returns the current date value".
currentView
object
Returns the current view value.
requestType
string
Returns the request type details - dateNavigate.
Returns the Schedule navigation details through previous and next appointment navigator button.
Name
Type
Description
currentDate
string
Returns the current date value".
currentView
object
Returns the current view value.
EventType
string
It indicates the action (navigation) performed in the Schedule.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerNavigation(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the details about the navigationif(e.Arguments["requestType"]!=null&&e.Arguments["requestType"].ToString()=="viewNavigate"){varPreviousView=e.Arguments["previousView"];varCurrentView=e.Arguments["currentView"];varCurrentDate=e.Arguments["currentDate"];}if(e.Arguments["requestType"]!=null&&e.Arguments["requestType"].ToString()=="dateNavigate"){varPreviousDate=e.Arguments["previousDate"];varCurrentDate=e.Arguments["currentDate"];varCurrentView=e.Arguments["currentView"];}}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerNavigation(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the details about the navigationIfe.Arguments("requestType")IsNotNothingAndAlsoe.Arguments("requestType").ToString()="viewNavigate"ThenDimPreviousView=e.Arguments("previousView")DimCurrentView=e.Arguments("currentView")DimCurrentDate=e.Arguments("currentDate")EndIfIfe.Arguments("requestType")IsNotNothingAndAlsoe.Arguments("requestType").ToString()="dateNavigate"ThenDimPreviousDate=e.Arguments("previousDate")DimCurrentDate=e.Arguments("currentDate")DimCurrentView=e.Arguments("currentView")EndIfEndSubEndClass
## OnServerAppointmentWindowOpen
The **OnServerAppointmentWindowOpen** event is triggered before the appointment window opens. The details of the clicked cells can be obtained server-side, as explained in the following table.
_Table 13: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerAppointmentWindowOpen event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of clicked cell or appointment details and its type.
Name
Type
Description
Arguments
object
Returns the clicked cell details.
Name
Type
Description
startTime
string
Returns the clicked cell start time value.
endTime
string
Returns the clicked cell end time value.
resource
object
Returns the clicked cell resource details.
Name
Type
Description
appointment
object
Returns the clicked appointment details.
edit
string
Returns the edit action status (i.e. when opening the appointment window by clicking on the appointment mark the status as true) - ex: true.
EventType
string
Returns the Event type detail - 'appointmentWindowOpen".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerAppointmentWindowOpen(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the current clicked cell detailsvarresource=e.Arguments["resources"];varstartTime=e.Arguments["startTime"];varendTime=e.Arguments["endTime"];// The following code will be used to get the current clicked appointment detailsvarappointment=e.Arguments["appointment"];varisCurrentActionEdit=e.Arguments["edit"];}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerAppointmentWindowOpen(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the current clicked cell detailsDimresource=e.Arguments("resources")DimstartTime=e.Arguments("startTime")DimendTime=e.Arguments("endTime")' The following code will be used to get the current clicked appointment detailsDimappointment=e.Arguments("appointment")DimisCurrentActionEdit=e.Arguments("edit")EndSubEndClass
## OnServerResizeStart
The **OnServerResizeStart** event is triggered when the appointment resizing begins. The details of the resizing appointment can be obtained server-side, as explained in the following table.
_Table 14: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerResizeStart event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of resizing appointment and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerResizeStart(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the resizing appointment detailsvarappointment=e.Arguments["appointment"];varevenType=e.EventType;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerResizeStart(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the resizing appointment detailsDimappointment=e.Arguments("appointment")DimevenType=e.EventTypeEndSubEndClass
## OnServerResizeStop
The **OnServerResizeStop** event is triggered when an appointment resizing stops. The details of the resized appointment can be obtained server-side, as explained in the following table.
_Table 16: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerResizeStop event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of resized appointment and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerResizeStop(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the resized appointment detailsArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerResizeStop(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the resized appointment detailsDimappointment=e.Arguments("appointment")Dimtarget=e.Arguments("target")DimevenType=e.EventTypeEndSubEndClass
## OnServerDragStart
The **OnServerDragStart** event is triggered when the appointment dragging begins. The details of the dragging appointment can be obtained server-side, as explained in the following table.
_Table 17: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerDragStart event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of dragging appointment and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerDragStart(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the resizing appointment detailsvarappointment=e.Arguments["appointment"];varevenType=e.EventType;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerDragStart(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the resizing appointment detailsDimappointment=e.Arguments("appointment")DimevenType=e.EventTypeEndSubEndClass
## OnServerDragStop
The **OnServerDragStop** event is triggered when the appointment is dropped. The details of the dropped appointment can be obtained server-side, as explained in the following table.
_Table 19: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerDragStop event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of drag and dropped appointment and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerDragStop(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the resized appointment detailsvarArguments=e.Arguments["appointment"]asDictionary<string,object>;dynamiclist=ArgumentsasDictionary<string,object>;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerDragStop(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the resized appointment detailsDimappointment=e.Arguments("appointment")Dimtarget=e.Arguments("event")DimevenType=e.EventTypeEndSubEndClass
## OnServerOverflowButtonClick
The **OnServerOverflowButtonClick** event is triggered when the overflow button is clicked. The details of the appointments that lies under the clicked date can be obtained server-side, as explained in the following table.
_Table 20: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerOverflowButtonClick event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of clicked day Datas (ex: date) and its type.
Name
Type
Description
Arguments
object
Name
Type
Description
Datas
object
Returns the clicked day date details.
EventType
string
Returns the Event type detail - 'overflowButtonClick".
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerOverflowButtonClick(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the current day date detailsvarappointment=e.Arguments["Datas"];varevenType=e.EventType;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerOverflowButtonClick(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the current day date detailsDimappointment=e.Arguments("Datas")DimevenType=e.EventTypeEndSubEndClass
## OnServerExportICS
The **OnServerExportICS** event is triggered when the schedule appointments are exported into ICS file format. The details of the schedule model, blocked and all other appointments can be obtained server-side, as explained in the following table.
_Table 21: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerExportICS event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of ICS file export related required details like appointment settings and processed, block appointment details and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ExportICS(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the details of the ics file export related appointment details and its settings and so onvarappointmentSetting=e.Arguments["appSetting"];varappointmentId=e.Arguments["appId"];varprocessedAppointments=e.Arguments["processedApp"];varblockAppointments=e.Arguments["blockedApp"];varscheduleModel=e.Arguments["model"];varlocaleText=e.Arguments["locale"];varevenType=e.EventType;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ExportICS(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)'The following code will be used to get the details of the ics file export related appointment details And its settings And so onDimappointmentSetting=e.Arguments("appSetting")DimappointmentId=e.Arguments("appId")DimprocessedAppointments=e.Arguments("processedApp")DimblockAppointments=e.Arguments("blockedApp")DimscheduleModel=e.Arguments("model")DimlocaleText=e.Arguments("locale")DimevenType=e.EventTypeEndSubEndClass
## OnServerExportPDF
The **OnServerExportPDF** event is triggered when the scheduler along with appointments is exported in PDF file format. The details of the schedule model, blocked and all other appointments can be obtained server-side, as explained in the following table.
_Table 22: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnServerExportPDF event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the details of PDF file export related required details like appointment settings and processed, block appointment details and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ServerExportPDF(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the details of the pdf file export related appointment details and its settings and so onvarappointmentSetting=e.Arguments["appSetting"];varappointmentId=e.Arguments["appId"];varprocessedAppointments=e.Arguments["processedApp"];varblockAppointments=e.Arguments["blockedApp"];varscheduleModel=e.Arguments["model"];varlocaleText=e.Arguments["locale"];varevenType=e.EventType;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ServerExportPDF(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)'The following code will be used to get the details of the PDF file export related appointment details And its settings And so onDimappointmentSetting=e.Arguments("appSetting")DimappointmentId=e.Arguments("appId")DimprocessedAppointments=e.Arguments("processedApp")DimblockAppointments=e.Arguments("blockedApp")DimscheduleModel=e.Arguments("model")DimlocaleText=e.Arguments("locale")DimevenType=e.EventTypeEndSubEndClass
## OnExportToExcel
The **OnExportToExcel** event is triggered when the scheduler appointments is exported in Excel file format. The details of the schedule appointments can be obtained server-side, as explained in the following table.
_Table 23: Syncfusion.JavaScript.Web.ScheduleEventArgs argument of OnExportToExcel event_
Name
Type
Description
EventArgs
ScheduleEventArgs
Returns the appointment details to export it to Excel file and its type.
publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidSchedule1_ExportToExcel(objectsender,Syncfusion.JavaScript.Web.ScheduleEventArgse){// The following code will be used to get the details of the excel file export related appointment detailsvarscheduleAppointment=e.Arguments["ScheduleAppointment"];varevenType=e.EventType;}}
PublicClass_DefaultInheritsPageProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMe.LoadEndSubProtectedSubSchedule1_ExportToExcel(senderAsObject,eAsSyncfusion.JavaScript.Web.ScheduleEventArgs)' The following code will be used to get the details of the excel file export related appointment detailsDimscheduleAppointment=e.Arguments("ScheduleAppointment")DimevenType=e.EventTypeEndSubEndClass
Help us improve this page
Please provide additional information
Please provide additional information
Please provide additional information
Please provide additional information
Please provide additional information
Please provide additional information
×
Syncfusion ASP.NET Web Forms
The Syncfusion ASP.NET Web Forms product was officially marked as a retired product with the 2023 Volume 2 release. Support for the retired products will be defined in Syncfusion Product Life Cycle. Using the latest Blazor or ASP.NET Core is recommended for new web application development. You can also visit the Blazor documentation and demo links for additional information, such as Blazor documentation and Blazor demos.