Home Unanswered Active Tags New Question

Empty scheduler throws IndexOutOfRangeException

DayPilot for ASP.NET v 6.5.2324.1

A DayPilotScheduler control with no events/resources throws an IndexOutOfRangeException when rendered.

IndexOutOfRangeException: Index was outside the bounds of the array.
DayPilot.Web.Ui.Colors.CellTable.GetColors() +131
DayPilot.Web.Ui.JsInitScheduler.GetCode() +8027
DayPilot.Web.Ui.DayPilotScheduler.Render(HtmlTextWriter output) +185
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11042324

Asked by Richard 8 months ago.
Replies

This is a bug of the 6.5 release. It happens if the Resources collection is empty.

It's fixed in the latest sandbox build. The fix will be included in the next release. See also:

http://www.daypilot.org/daypilot-pro-6-5-sp1.html

Answer posted by Dan Letecky [DayPilot] 8 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java