This is a migrated thread and some comments may be shown as answers.

Radscheduler breaks under some endtime/timeincrement combinations

3 Answers 61 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 21 Feb 2012, 10:26 PM
I think this is related to this issue: http://www.telerik.com/community/forums/preview-thread/aspnet-ajax/scheduler/radscheduler-crashes-on-dayendtime-quot-23-40-00-quot-and-minutesperrow-quot-26-quot-why.aspx  and possibly caused by the fix that you guys implemented for that.

Any normal scheduler set up with:
DayStartTime 7:00
DayEndTime 11:55
TimeIncrement 45

will crash with 'this.cells.0.offsetHeight' is null or not an object

I think I've tracked down the cause of it.  It happens under a very specific set of circumstances:

1) your time span (Begin time to end time) results in an odd number of time intervals
2) your end time is less than one time interval shy of midnight.

I think that Since the Radscheduler displays time intervals in pairs, it tries to pad the display out by one interval, which puts the scheduler into tomorrow, which causes the javascript to die.  Setting your schedule grid end time to one interval short of midnight prevents this from happening.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 Feb 2012, 02:14 PM
Hi James,

Thank you for sharing your findings in the forum. I have updated your Telerik points for the involvement.

Kind regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
James
Top achievements
Rank 1
answered on 11 Oct 2012, 02:59 PM
Quick followup to this.  I've discovered that anything that causes the "DayEndTime" or "WorkDayEndTime" timespan to go over 24 hours (Into tomorrow) will cause this error.

You can put a negative start time in without causing this.  So if you want to span midnight, you need to start "yesterday" and go to "today" instead of starting "Today" and going to "Tomorrow"
0
Ivana
Telerik team
answered on 16 Oct 2012, 01:27 PM
Hi James,

Thank you for sharing your findings with us. Your involvement is greatly appreciated.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
James
Top achievements
Rank 1
Answers by
Peter
Telerik team
James
Top achievements
Rank 1
Ivana
Telerik team
Share this question
or