Schedule doesn't render in 'Agenda' view

When using the scheduler control. The following error shows when switching to 'Agenda' mode. All of the other views show ok...

VM8772:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object._renderAgendaContent (ej.web.all.min.js:10)
    at Object._renderAppointmentAll (ej.web.all.min.js:10)
    at Object._renderCurrentView (ej.web.all.min.js:10)
    at Object._viewChange (ej.web.all.min.js:10)
    at Object.proxy (jquery-1.12.4.js:529)
    at HTMLDivElement.<anonymous> (ej.web.all.min.js:10)
    at HTMLDivElement.dispatch (jquery-1.12.4.js:5226)
    at HTMLDivElement.elemData.handle (jquery-1.12.4.js:4878)


This is the code for the scheduler

        @(Html.EJ().Schedule("FeatureSchedule")
            .Width("100%")
            .Height("700px")
            .CurrentDate(DateTime.Now)
            .DateFormat("dd/MM/yyyy")
            .EnableAppointmentResize(false)
            .Views(views)
            .ShowQuickWindow(false)
            .ShowWeekend(true)
            .TooltipSettings(pre => pre.Enable(true))
            .TimeMode(TimeMode.Hour24)
            .ShowCurrentTimeIndicator(false)
            .StartHour(8)
            .EndHour(17)
            .AgendaViewSettings(a => a.DaysInAgenda(5))
            .Orientation(Orientation.Vertical)
            .AppointmentTemplateId("#customWindow")
            .CategorizeSettings(fields => fields.Datasource(ViewBag.CategorizeValue).Enable(true).AllowMultiple(false).Id("Id").Text("Name").Color("Color").FontColor("FontColor"))
            .PrioritySettings(pri => pri.Enable(false))
            .AppointmentSettings(fields => fields.Datasource(dataSource => dataSource.URL("/Calendar/GetData").BatchURL("/Calendar/Crud").InsertURL("/Calendar/add").UpdateURL("/Calendar/update").RemoveURL("/Calendar/remove").Adaptor(AdaptorType.UrlAdaptor))
            .ApplyTimeOffset(false)
            .Id("ScheduleID")
                .Subject("Subject")
                .StartTime("StartTime")
                .StartTimeZone("StartTimeZone")
                .EndTime("EndTime")
                .EndTimeZone("EndTimeZone")
                .Description("Description")
                 .Location("Location")
                 .AllDay("AllDay")
                 .Priority("Priority")
                 .Categorize("Categorize")
                 .Recurrence("Recurrence")
                 .RecurrenceRule("RecurrenceRule")
                 .RecurrenceId("RecurrenceId")
                 .RecurrenceExDate("RecurrenceExDate")
                 .ResourceFields("OwnerId")
                 )
                 .ScheduleClientSideEvents(evt => evt.QueryCellInfo("checkFormat")
                 .DragStop("onDragStop")
                 .BeforeAppointmentChange("onBeforeAppointmentChange")
                 .AppointmentChanged("onAppointmentChanged")
                 .AppointmentWindowOpen("onAppointmentWindowOpen")
                ).AppointmentTemplateId("#AppointmentTemplate")
            )


1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team February 20, 2018 12:00 PM UTC

Hi Paul, 
 
Thank you for contacting Syncfusion support. 
 
In the provided code example, QueryCellInfo event is used which will be triggered while rendering all views and we suspect that customization done in that event function could be the cause for the issue. We request you to share your index file or try to reproduce the error in the below sample and revert us to proceed further. 
 
Regards, 
Karthigeyan 



Loader.
Up arrow icon