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

Empty scheduler throws IndexOutOfRangeException

Asked by Richard
12 years ago.

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

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

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

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