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
10 years ago.

Hi,
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

Ranjith

Comment posted by ranjith.c
10 years ago.

using mvc 4.0.0.1

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

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

Comment posted by ranjith.c
10 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
10 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.

Ranjith

Answer posted by Dan Letecky [DayPilot]
10 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 (http://doc.daypilot.org/scheduler/hiding-time-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.