search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

JSON error while dragging and droping an event

Asked by Prasunna
6 years ago.

I am getting the below JASON error when I try to drag and drop an event in the daypilot schedule calendar.
I added EventMoveHandling="CallBack" and added EventMove handler on server side code and trying to see if the EventMove handler is getting hit on draging the event. But I am seeing the below error before hitting the EventMove handler on server side.
Note: Daypilot version I am using is 6.9.2522.0

System.ArgumentException: Array JsonData expected. Received: String
at DayPilot.Web.Ui.TimeHeaderCollection.RestoreCollection(TimeHeaderCollection collection, JsonData json)
at DayPilot.Web.Ui.TimeHeaderCollection.RestoreFromJson(JsonData tree)
at DayPilot.Web.Ui.DayPilotScheduler.ExecuteEventJSON(String ea)
at DayPilot.Web.Ui.DayPilotScheduler.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String ea)
at System.Web.UI.Page.PrepareCallback(String callbackControlID)

Can anybody please help me on this. Maybe I am missing something here.
The _callbackparam I am seeing in POST from firebug is below:

JSON{"action":"EventMove","type":"CallBack","parameters":{"e":{"value":"703cc65b-1fba-4665-bb8f-c1c4eacb1ec8","text":"OPT 1","start":"2013-12-07T13:00:00","end":"2013-12-07T15:00:00","resource":"703cc65b-1fba-4665-bb8f-c1c4eacb1ec8","isAllDay":false,"recurrentMasterId":null,"tag":{"entity_type_id":"13","entity_stub":"55adb917-6cc5-4e94-9bf0-54f9836ac4c4","resource_stub":"703cc65b-1fba-4665-bb8f-c1c4eacb1ec8"}},"newStart":"2013-12-07T13:00:00","newEnd":"2013-12-07T15:00:00","newResource":"b212827c-5673-4d4c-a689-a59d58ccccaf"},"header":{"control":"dps","id":"ctl02_ResourceScheduleViewUC_DayPilotScheduler1","startDate":"2013-12-07T00:00:00","days":1,"cellDuration":10,"cellGroupBy":"Hour","cellWidth":20,"viewType":"Resources","hourNameBackColor":"","showNonBusiness":true,"businessBeginsHour":5,"businessEndsHour":24,"weekStarts":1,"treeEnabled":true,"backColor":"","nonBusinessBackColor":"","tagFields":"[\"entity_type_id\", \"entity_stub\", \"resource_stub\"]","timeHeaders":"[{\"GroupBy\": \"Hour\"}]","clientState":{},"scrollX":1445,"scrollY":0,"selected":[],"hashes":{"corner":"K9YjVepj4yhE7uULPM6GTtyRMEU=","callBack":"C/WwcNx9xYwGzmYvAob7n5HHvjQ=","colors":"QR59eog7Y11Y6XBTH7oBgYsoywg=","separators":"l9Fw4VUO7kr8CvBlt4zaMCqXZ0w=","timeHeader":"MSKedAQQXfl1KeklOzRK7Qupc1c="},"rangeStart":"2013-12-07T12:00:00","rangeEnd":"2013-12-07T16:30:00","resources":["67e13440-a2e1-477e-9795-69a68517ab36","703cc65b-1fba-4665-bb8f-c1c4eacb1ec8","a51a887c-5f74-4efd-9816-ea183ab67684","b212827c-5673-4d4c-a689-a59d58ccccaf"],"dynamicLoading":false,"tree":[{"Value":"67e13440-a2e1-477e-9795-69a68517ab36","Name":"res 2","InnerHTML":"<div class='resource-name'>\r\n <span>res 2</span>\r\n </div>","ToolTip":null,"Expanded":false,"Children":[],"Loaded":true,"Columns":null},{"Value":"703cc65b-1fba-4665-bb8f-c1c4eacb1ec8","Name":"Res 3","InnerHTML":"<div class='resource-name'>\r\n <span>Res 3</span>\r\n </div>","ToolTip":null,"Expanded":false,"Children":[],"Loaded":true,"Columns":null},{"Value":"a51a887c-5f74-4efd-9816-ea183ab67684","Name":"res 4","InnerHTML":"<div class='resource-name'>\r\n <span>res 4</span>\r\n </div>","ToolTip":null,"Expanded":false,"Children":[],"Loaded":true,"Columns":null},{"Value":"b212827c-5673-4d4c-a689-a59d58ccccaf","Name":"res1","InnerHTML":"<div class='resource-name'>\r\n <span>res1</span>\r\n </div>","ToolTip":null,"Expanded":false,"Children":[],"Loaded":true,"Columns":null}]}}

Thanks in Advance.

Answer posted by Dan Letecky [DayPilot]
6 years ago.

This is an old version that is no longer supported.

Can you please give it a try with the latest release?

http://www.daypilot.org/try.html

Let me know if the problem persists.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.