Hello, good afternoon, I have problem with the "refreshAppointments" this is my razor and I load the scheduler well, but when I want to reload it with the javascript function says:
Cannot read property 'refreshAppointments' of undefined
in this way I charge the scheduler:
<div id="Schedule1" style="float: left; margin: 20px;">
@section ControlsSection{
@(Html.EJ().Schedule("Schedule1")
.Width("95%")
.Height("900px")
.EnableLoadOnDemand(true)
.Locale("es-ES")
.TimeZone("UTC -00:00")
.CurrentDate(DateTime.Now)
.ShowQuickWindow(true)
.AllowInline(false)
.EnableAppointmentResize(true)
.AppointmentSettings(fields => fields.Datasource(ds => http://localhost:8080/Calendar/LoadData).CrossDomain(true))
.Id("Id")
.Subject("Subject")
.StartTime("StartTime")
.EndTime("EndTime")
.Description("Description")
.AllDay("AllDay")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule"))
.ScheduleClientSideEvents(e => e.AppointmentWindowOpen("onAppointmentWindowOpen")
.CellDoubleClick("onCellDoubleClick")
.AppointmentClick("onAppointmentClick")
.Create("onCreate")
.DragStop("onDragAndDrop")
.ResizeStop("onResize")
)
)
}
</div>