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

How can i clear the content of daypilot scheduler version 7.9

Asked by ranjith.c
8 years ago.

How can i clear the Scheduler, previously I was using the Resources.Clear(); method to clear the contents.
but now the method return new Dps().CallBack(this); is throwing error if the events is null, Index was out of range. Must be non-negative and less than the size of the collection


Comment posted by ranjith.c
8 years ago.

using mvc

Comment posted by Dan Letecky [DayPilot]
8 years ago.

Can you please post the stack trace (I assume it's a server-side exception)?

Comment posted by ranjith.c
8 years ago.

Hi Dan,
Please find the stack trace
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at DayPilot.Web.Mvc.Data.SchedulerTimeHeader.PrepareGroupline(Int32 level)
at DayPilot.Web.Mvc.Data.SchedulerTimeHeader.PrepareGrouplines()
at DayPilot.Web.Mvc.DayPilotScheduler.CallBack(Controller c)
at BSM.BSMPALv2.Web.Areas.CrewingPAL.Controllers.GraphicalPlanController.BackendScheduler() in d:\BSMPAL v2\BSMPALv2.Crewing\BSMPALv2.Crewing\BSMPALv2.Crewing.Web\Areas\CrewingPAL\Controllers\GraphicalPlanController.cs:line 322

Comment posted by ranjith.c
8 years ago.

I want to clear the row header as well, so I cannot have
StartDate = ######;
Days = ####;

if days > 10 then there is no error.


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

This issue seems to be related to the timeline only. You can see this exception if the timeline is empty, i.e. when Days is set to 0 or if you hide all columns (

This Timeline length is now checked in the latest build (7.9.5732) and you won't see the exception anymore.

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