Thank you for contacting Syncfusion support.
We have prepared the sample to trigger the events before and after loading the appointments in Schedule which can be download from the below location.
<Code>
@(Html.EJ().Schedule("Schedule1")
.Width("100%")
.Height("525px")
.CurrentDate(new DateTime(2015, 8, 7))
.ScheduleClientSideEvents(evt =>
evt.ActionComplete("OnComplete").ActionBegin("onBegin"))
.AppointmentSettings(fields => fields.Datasource(ds => ds.URL("/Home/GetData").CrudURL("/Home/Batch").Adaptor("UrlAdaptor"))
.ApplyTimeOffset(false)
.Id("Id")
.Subject("Subject")
.StartTime("StartTime")
.EndTime("EndTime")
.AllDay("AllDay")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule"))
)
<script>
function onBegin(args) {
if (args.requestType == "dataBinding") { // this condition will satisfy before rendering the appointment from db
// do your custom action
}
}
function OnComplete(args) {
if (args.requestType == "dataBound") {// this condition will satisfy after rendering the appointment from db
// do your custom action
}
}
</script>
</Code>
Note: Above events will trigger only in CRUD sample.
Regards,
Karthigeyan