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

Recurrence rules: duration greater than frequency

3 Answers 73 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Connections Academy Developer
Top achievements
Rank 1
Connections Academy Developer asked on 09 Nov 2010, 10:15 PM
Hi -

We are experiencing an issue, which I am able to reproduce in your demo, where creating a recurring event that has a duration greater than its frequency causes rendering issues.  For example, an event that is a week long and happens every hour.  More extremely, try this scenario:

1. Create a new event with a start of 9/14/2005 11:00 AM and a finish of 9/14/2012 1:00 PM.
2. Add hourly recurrence (recurring once every hour).
3. Navigate to some date in the scheduler that comes before 9/14/2012.

The above scenario, while I realize it is unrealistic in a practical sense (but of course, everyone has users who will try it), causes the recurring events to overlap and ultimately "stack up" to epic proportions.  It crashed my browser when I tried it in your demo.  The same thing happens in our application, and we are getting this error as well (which I imagine you may have seen in your own error logs when I tried it in your demo):

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value
at System.Web.UI.WebControls.Unit..ctor(Double value, UnitType type)
at Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.CreateAllDayCells(WebControl row, Dictionary`2 appointmentControls)
at Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.AddRow(IList`1 allDaySlots, Dictionary`2 appointmentControls)
at Telerik.Web.UI.Scheduler.Views.Week.Renderer.CreateAllDayContent(WebControl allDayContentWrapper)
at Telerik.Web.UI.Scheduler.Views.Week.RendererBase.AddAllDayRowContent(SchedulerTopTable topTable)
at Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent()
at Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent()
at Telerik.Web.UI.RadScheduler.CreateContent()
at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
at Telerik.Web.UI.RadScheduler.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Looking at the exception, it looks like what might be happening is that your code is trying to determine how tall the control needs to be based on how many events need to be rendered, and the .NET Unit structure itself is saying "that's too big."

Microsoft Outlook enforces a rule with recurrence where duration must be less than or equal to frequency.  That solves this issue.  Is there any reason the RadScheduler doesn't do the same?

Is there any known workaround here or are we expected to code our own validation for this on top of the RadScheduler?

Thanks,
John


3 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 15 Nov 2010, 04:18 PM
Hi John,

Thank you for reporting this problem to our team.
We have decided to prepare a knowledge-base article on this topic, showing how to overcome such a situation.

As soon as we are ready, I will update you with a link to the article!


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Connections Academy Developer
Top achievements
Rank 1
answered on 15 Dec 2010, 05:16 PM
Hi -

Just wondering if any movement has been made on the knowledge-base article?

Thanks,
John
0
Nikolay Tsenkov
Telerik team
answered on 20 Dec 2010, 06:39 PM
Hi,

We have been very busy in the last month with the Service Pack that we just have released a few days ago and didn't had the time to prepare the knowledge base article.

Since it will be a pretty complex one, it probably will be scheduled for as early as the first days of the new year.
What I can promise, for sure, is that as soon as we make some progress on this I will update you.

Please accept my apologies for the delay.


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Connections Academy Developer
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Connections Academy Developer
Top achievements
Rank 1
Share this question
or