Uncaught ejSchedule: methods/properties can be accessed only after plugin creation Error: ejSchedule: methods/properties can be accessed only after plugin creation at t.throwError (eval at <anonymous> (http://localhost:50498/Scripts/jquery-1.10.2.min.js:21:4994), <anonymous>:10:22808) at n.fn.(anonymous function) [as ejSchedule] (eval at <anonymous> (http://localhost:50498/Scripts/jquery-1.10.2.min.js:21:4994), <anonymous>:10:17521) at filtersuccess (http://localhost:50498/Home:205:38) at Object.onDialogClose (http://localhost:50498/Home:259:6) at Object.t.widgetBase._trigger (http://localhost:50498/Scripts/ej/ej.web.all.min.js:10:10945) at HTMLDivElement.<anonymous> (http://localhost:50498/Scripts/ej/ej.web.all.min.js:10:697508) at HTMLDivElement.r.complete (http://localhost:50498/Scripts/jquery-1.10.2.min.js:23:25585) at c (http://localhost:50498/Scripts/jquery-1.10.2.min.js:21:26036) at Object.p.fireWith [as resolveWith] (http://localhost:50498/Scripts/jquery-1.10.2.min.js:21:26840) at l (http://localhost:50498/Scripts/jquery-1.10.2.min.js:23:19765) |
<div id="schedule" class="waiting"> @(Html.EJ().Schedule("Schedule1") .Width("100%") .Height("650px") .AllowKeyboardNavigation(true) .Locale("en-US") .IsResponsive(true) .AllowDragDrop(false) .ShowTimeScale(false) .ContextMenuSettings(menu => menu.Enable(true)) .CurrentView(CurrentView.Month) .EnableLoadOnDemand(true) .ScheduleClientSideEvents(eve => eve.CellDoubleClick("onOpen")) .ScheduleClientSideEvents(eve => eve.AppointmentHover("recordDetails")) .ScheduleClientSideEvents(eve => eve.CellHover("recordDetails")) .ScheduleClientSideEvents(eve => eve.Create("filters")) .ScheduleClientSideEvents(eve => eve.CellClick("cell")) .ScheduleClientSideEvents(eve => eve.AppointmentClick("onAppointmentClick")) .ScheduleClientSideEvents(eve => eve.BeforeContextMenuOpen("popCustomContextMenu")) .AppointmentSettings(fields => fields.Datasource(ds => ds.URL(Url.Action("GetData", "Home")).Adaptor(AdaptorType.UrlAdaptor)) .Id("Id") .Subject("Subject")) .ShowAllDayRow(false)) |
var schObj = $("#Schedule1").ejSchedule("instance"); schObj.refresh(); |
Query2: Appointments are not displaying after refreshing the scheduler We suspect that the reason for the above mentioned issue is scheduler fields are not mapped properly. In order to render the appointments with in the scheduler we need to map the StartTime, EndTime fields as they are mandatory fields. In the provided code example only Id and Subject fields are mapped. Therefore, we request you to map the starttime and endtime fields in order to render to the appointments in scheduler control. Kindly refer the below UserGuide Link in order to know more about scheduler fields. |
Query1: Script error throws while refreshing the scheduler We have analyzed your provided code example and suspect that you have created the object for the Schedule control before the control is rendering. Therefore, we request you to create an object for schedule once the control is rendered in order to avoid the reported script error. |