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

DayPilot Scheduler Error - Error during serialization or deserialization using the JSON JavaScripSerializer. The length of the string exceeds the value set on the maxJsonLength property

Asked by Rui
14 days ago.

Hello,

We have seen some issues when there too many datas rendered in the DayPilotScheduler. When I checked the Release note, I see that this problem has been corrected in the DayPilot Pro for ASP.NET MVC 7.1 SP2.

But we're using the DayPilot Pro for ASP.NET WebForms 8.0.

So I'm quite interested if this has been corrected in the latest version? If this still exists, when are you able to provide a new release to correct this issue?

Thanks,
Rui

Answer posted by Dan Letecky [DayPilot]
13 days ago.

This error is caused by UpdatePanel which is only able to send a limited response to the browser during update.

There are several options:

1. You can place the DayPilotScheduler control outside of the UpdatePanel.
2. You can keep DayPilotScheduler inside the UpdatePanel and load events using a internal CallBack mechanism - the initial event set can be loaded using Init event, and all events allow "CallBack" handling type.

It also indicates that you data set is big and you should make sure that you are only loading the required data. The scheduler control filters out events that are outside of the visible range (VisibleStart, VisibleEnd) before sending them back to the client side. However, if the visible range is too long you may still hit the limit.

You can also consider using the dynamic event loading mode (https://doc.daypilot.org/scheduler/dynamic-event-loading/) that lets the Scheduler load events dynamically during scrolling.

New Reply
This reply is
Your name (optional):