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.
Name |
Description |
edit |
Returns when updating normal appointment. |
editOccurrence |
Returns when updating single occurrence from Recurrence series. |
editSeries |
Returns when updating entire series. |
</tbody>
</table>
</td>
recurrenceCollection |
object |
Returns the recurrence appointment details.
Name |
Type |
Description |
occurrences |
object |
Returns the edited occurrence appointment detail. |
parentData |
object |
Returns the edited occurrence parent appointment detail. |
</tbody>
</table>
</td>
ignoreEditedOccurrences |
boolean |
Returns the value to decide the edited occurrence to be ignored or not while updating the appointment.
|
</tbody>
</table>
</td>
EventType |
string |
Returns the Event type detail - 'beforeAppointmentChange". |
</tbody>
</table>
</td>
</tbody>
</table>
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerBeforeAppointmentChange="Schedule1_ServerBeforeAppointmentChange" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerBeforeAppointmentChange(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the editing appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic list = Arguments as Dictionary<string, object>;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerBeforeAppointmentChange(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the editing appointment details
Dim Arguments = e.Arguments("appointment")
Dim EventType = e.EventType
End Sub
End Class
## 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 |
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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerBeforeAppointmentRemove="Schedule1_ServerBeforeAppointmentRemove" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerBeforeAppointmentRemove(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the deleting appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic list = Arguments as Dictionary<string, object>;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerBeforeAppointmentRemove(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the deleting appointment details
Dim Arguments = e.Arguments("appointment")
Dim EventType = e.EventType
End Sub
End Class
## 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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerAppointmentCreated="Schedule1_ServerAppointmentCreated" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerAppointmentCreated(object Sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the created appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic EventDetails = Arguments as Dictionary<string, object>;
string RequestType = e.Arguments["requestType"] as string;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerAppointmentCreated(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the created appointment details
Dim Arguments = e.Arguments("appointment")
Dim RequestType = e.Arguments("requestType")
Dim EventType = e.EventType
End Sub
End Class
## 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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerAppointmentChanged="Schedule1_ServerAppointmentChanged" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerAppointmentChanged(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the changed appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic EventDetail = Arguments as Dictionary<string, object>;
string RequestType = e.Arguments["requestType"] as string;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerAppointmentChanged(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the changed appointment details
Dim Arguments = e.Arguments("appointment")
Dim RequestType = e.Arguments("requestType")
Dim EventType = e.EventType
End Sub
End Class
## 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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerAppointmentRemoved="Schedule1_ServerAppointmentRemoved" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerAppointmentRemoved(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the deleted appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic EventDetail = Arguments as Dictionary<string, object>;
string RequestType = e.Arguments["requestType"] as string;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerAppointmentRemoved(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the deleted appointment details
Dim Arguments = e.Arguments("appointment")
Dim RequestType = e.Arguments("requestType")
Dim EventType = e.EventType
End Sub
End Class
## 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". |
|
EventType |
string |
Returns the Event type detail - 'cellClick". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerCellClick="Schedule1_ServerCellClick" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerCellClick(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the clicked cell details
var CellIndex = e.Arguments["cellIndex"];
var StartTime = e.Arguments["startTime"];
var EndTime = e.Arguments["endTime"];
var Resources = e.Arguments["resources"];
var QuickString = e.Arguments["quickString"];
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerCellClick(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the clicked cell details
Dim CellIndex = e.Arguments("cellIndex")
Dim StartTime = e.Arguments("startTime")
Dim EndTime = e.Arguments("endTime")
Dim Resources = e.Arguments("resources")
Dim QuickString = e.Arguments("quickString")
End Sub
End Class
## 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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerAppointmentClick="Schedule1_ServerAppointmentClick" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerAppointmentClick(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the clicked appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic list = Arguments as Dictionary<string, object>;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerAppointmentClick(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the clicked appointment details
Dim Arguments = e.Arguments("appointment")
Dim EventType = e.EventType
End Sub
End Class
## 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.
Target
Description
Cell
Returns 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
Appointment
Returns 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".
|
|
EventType |
string |
Returns the Event type detail - 'menuItemClick". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerMenuItemClick="Schedule1_ServerMenuItemClick" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerMenuItemClick(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the clicked menu item details
var Arguments1 = e.Arguments["events"] as Dictionary<string, object>;
dynamic eventlist = Arguments1 as Dictionary<string, object>;
if (eventlist["ID"] == "new" || eventlist["ID"] == "recurrence" || eventlist["ID"] == "today" || eventlist["ID"] == "gotodate")
{
Arguments = e.Arguments["targetInfo"] as Dictionary<string, object>;
dynamic list = Arguments as Dictionary<string, object>;
var startTime = list["startTime"];
var endTime = list["endTime"];
}
if (eventlist["ID"] == "open" || eventlist["ID"] == "delete")
{
Arguments = e.Arguments["targetInfo"] as Dictionary<string, object>;
// Here list will hold the clicked appointment details
dynamic list = Arguments as Dictionary<string, object>;
}
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerMenuItemClick(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the clicked menu item details
Dim eventlist = e.Arguments("events")
If eventlist("ID") = "new" OrElse eventlist("ID") = "recurrence" OrElse eventlist("ID") = "today" OrElse eventlist("ID") = "gotodate" Then
Dim list = e.Arguments("targetInfo")
Dim startTime = list("startTime")
Dim endTime = list("endTime")
End If
If eventlist("ID") = "open" OrElse eventlist("ID") = "delete" Then
' Here list will hold the clicked appointment details
Dim list = e.Arguments("targetInfo")
End If
End Sub
End Class
## 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. |
Name |
Type |
Description |
Returns the Schedule date navigation details.
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. |
Name |
Type |
Description |
Returns the Schedule navigation details through previous and next appointment navigator button.
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. |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerNavigation="Schedule1_ServerNavigation" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerNavigation(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the details about the navigation
if (e.Arguments["requestType"] != null && e.Arguments["requestType"].ToString() == "viewNavigate")
{
var PreviousView = e.Arguments["previousView"];
var CurrentView = e.Arguments["currentView"];
var CurrentDate = e.Arguments["currentDate"];
}
if (e.Arguments["requestType"] != null && e.Arguments["requestType"].ToString() == "dateNavigate")
{
var PreviousDate = e.Arguments["previousDate"];
var CurrentDate = e.Arguments["currentDate"];
var CurrentView = e.Arguments["currentView"];
}
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerNavigation(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the details about the navigation
If e.Arguments("requestType") IsNot Nothing AndAlso e.Arguments("requestType").ToString() = "viewNavigate" Then
Dim PreviousView = e.Arguments("previousView")
Dim CurrentView = e.Arguments("currentView")
Dim CurrentDate = e.Arguments("currentDate")
End If
If e.Arguments("requestType") IsNot Nothing AndAlso e.Arguments("requestType").ToString() = "dateNavigate" Then
Dim PreviousDate = e.Arguments("previousDate")
Dim CurrentDate = e.Arguments("currentDate")
Dim CurrentView = e.Arguments("currentView")
End If
End Sub
End Class
## 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 |
Name |
Type |
Description |
Returns the clicked cell details.
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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerAppointmentWindowOpen="Schedule1_ServerAppointmentWindowOpen" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerAppointmentWindowOpen(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the current clicked cell details
var resource = e.Arguments["resources"];
var startTime = e.Arguments["startTime"];
var endTime = e.Arguments["endTime"];
// The following code will be used to get the current clicked appointment details
var appointment = e.Arguments["appointment"];
var isCurrentActionEdit = e.Arguments["edit"];
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerAppointmentWindowOpen(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the current clicked cell details
Dim resource = e.Arguments("resources")
Dim startTime = e.Arguments("startTime")
Dim endTime = e.Arguments("endTime")
' The following code will be used to get the current clicked appointment details
Dim appointment = e.Arguments("appointment")
Dim isCurrentActionEdit = e.Arguments("edit")
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
appointment |
object |
Returns the resizing appointment details. |
|
EventType |
string |
Returns the Event type detail - 'resizeStart". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerResizeStart="Schedule1_ServerResizeStart" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerResizeStart(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the resizing appointment details
var appointment = e.Arguments["appointment"];
var evenType = e.EventType;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerResizeStart(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the resizing appointment details
Dim appointment = e.Arguments("appointment")
Dim evenType = e.EventType
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
appointment |
object |
Returns the resized appointment details. |
target |
string |
Returns the target details. |
|
EventType |
string |
Returns the Event type detail - 'resizeStop". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerResizeStop="Schedule1_ServerResizeStop" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerResizeStop(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the resized appointment details
Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic list = Arguments as Dictionary<string, object>;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerResizeStop(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the resized appointment details
Dim appointment = e.Arguments("appointment")
Dim target = e.Arguments("target")
Dim evenType = e.EventType
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
appointment |
object |
Returns the dragging appointment details. |
|
EventType |
string |
Returns the Event type detail - 'dragStart". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerDragStart="Schedule1_ServerDragStart" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerDragStart(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the resizing appointment details
var appointment = e.Arguments["appointment"];
var evenType = e.EventType;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerDragStart(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the resizing appointment details
Dim appointment = e.Arguments("appointment")
Dim evenType = e.EventType
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
appointment |
object |
Returns the drag and dropped appointment details. |
event |
string |
Returns the event details. |
|
EventType |
string |
Returns the Event type detail - 'dragStop". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerDragStop="Schedule1_ServerDragStop" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerDragStop(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the resized appointment details
var Arguments = e.Arguments["appointment"] as Dictionary<string, object>;
dynamic list = Arguments as Dictionary<string, object>;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerDragStop(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the resized appointment details
Dim appointment = e.Arguments("appointment")
Dim target = e.Arguments("event")
Dim evenType = e.EventType
End Sub
End Class
## 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". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerOverflowButtonClick="Schedule1_ServerOverflowButtonClick" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerOverflowButtonClick(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the current day date details
var appointment = e.Arguments["Datas"];
var evenType = e.EventType;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerOverflowButtonClick(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the current day date details
Dim appointment = e.Arguments("Datas")
Dim evenType = e.EventType
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
appSetting |
string |
Returns the appointment settings details. |
appId |
number |
Returns the exported appointment ID value. |
processedApp |
string |
Returns the processed appointment details. |
blockedApp |
string |
Returns the block out appointment details. |
model |
string |
Returns the schedule model details. |
locale |
string |
Returns the localized text details. |
|
EventType |
string |
Returns the Event type detail - 'exportICS". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerExportICS="Schedule1_ExportICS" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ExportICS(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the details of the ics file export related appointment details and its settings and so on
var appointmentSetting = e.Arguments["appSetting"];
var appointmentId = e.Arguments["appId"];
var processedAppointments = e.Arguments["processedApp"];
var blockAppointments = e.Arguments["blockedApp"];
var scheduleModel = e.Arguments["model"];
var localeText = e.Arguments["locale"];
var evenType = e.EventType;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ExportICS(sender As Object, e As Syncfusion.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 on
Dim appointmentSetting = e.Arguments("appSetting")
Dim appointmentId = e.Arguments("appId")
Dim processedAppointments = e.Arguments("processedApp")
Dim blockAppointments = e.Arguments("blockedApp")
Dim scheduleModel = e.Arguments("model")
Dim localeText = e.Arguments("locale")
Dim evenType = e.EventType
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
appSetting |
string |
Returns the appointment settings details. |
appId |
number |
Returns the exported appointment ID value. |
processedApp |
string |
Returns the processed appointment details. |
blockedApp |
string |
Returns the block out appointment details. |
model |
string |
Returns the schedule model details. |
locale |
string |
Returns the localized text details. |
|
EventType |
string |
Returns the Event type detail - 'exportPDF". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnServerExportPDF="Schedule1_ServerExportPDF" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ServerExportPDF(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the details of the pdf file export related appointment details and its settings and so on
var appointmentSetting = e.Arguments["appSetting"];
var appointmentId = e.Arguments["appId"];
var processedAppointments = e.Arguments["processedApp"];
var blockAppointments = e.Arguments["blockedApp"];
var scheduleModel = e.Arguments["model"];
var localeText = e.Arguments["locale"];
var evenType = e.EventType;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ServerExportPDF(sender As Object, e As Syncfusion.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 on
Dim appointmentSetting = e.Arguments("appSetting")
Dim appointmentId = e.Arguments("appId")
Dim processedAppointments = e.Arguments("processedApp")
Dim blockAppointments = e.Arguments("blockedApp")
Dim scheduleModel = e.Arguments("model")
Dim localeText = e.Arguments("locale")
Dim evenType = e.EventType
End Sub
End Class
## 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.
Name |
Type |
Description |
Arguments |
object |
Name |
Type |
Description |
ScheduleAppointment |
string |
Returns the exporting appointment details. |
|
EventType |
string |
Returns the Event type detail - 'exportToExcel". |
|
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" OnExportToExcel="Schedule1_ExportToExcel" runat="server">
</ej:Schedule>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Schedule1_ExportToExcel(object sender, Syncfusion.JavaScript.Web.ScheduleEventArgs e)
{
// The following code will be used to get the details of the excel file export related appointment details
var scheduleAppointment = e.Arguments["ScheduleAppointment"];
var evenType = e.EventType;
}
}
Public Class _Default
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
End Sub
Protected Sub Schedule1_ExportToExcel(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
' The following code will be used to get the details of the excel file export related appointment details
Dim scheduleAppointment = e.Arguments("ScheduleAppointment")
Dim evenType = e.EventType
End Sub
End Class
|
|
|
|