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

Bug or limitation of maximum appointments ?

2 Answers 90 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
samin
Top achievements
Rank 1
samin asked on 06 May 2011, 05:19 PM
i implement a schedulerview. when scheduler is in Day,week or timeline mode all thing work true. in this situation my appointments in maximum are 50 apps. 

but when i select month view if appointments are 528 , it shows up them truly but if I increase them to 529 or above ...scheduler hangs for some second and then below windows (attached screenshot ) appears on screen. and after that there is below error in corner of IE.

Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Fri, 6 May 2011 15:57:44 UTC
 
 
Message: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Telerik.Windows.Controls.AppointmentsHelper.SplitToColumns(AppointmentSlotGroupInfo groupInfo, TimeSpan startTime, TimeSpan endTime, Func`2 roundAppointmentDurationToDay)
   at Telerik.Windows.Controls.GroupHeader.CalculateAppointmentItemRenderRectangle()
   at Telerik.Windows.Controls.GroupHeader.set_CalculatedChildrenLength(Double value)
   at Telerik.Windows.Controls.GroupHeader.SetAvailableLength(Double availableLength, Boolean isHorizontal)
   at Telerik.Windows.Controls.AppointmentsPanel.UpdateHeaderAvailableSize(List`1 headers, Double availableLength, Boolean isHorizontal, Boolean initialize, Boolean redistributeAvailableSpace)
   at Telerik.Windows.Controls.AppointmentsPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)    
 
Line: 56
Char: 13
Code: 0
URI: http://localhost:1520/Default.aspx

i have wondered maybe there is a appointment limitation in appointment source.
please deal with it.
thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 09 May 2011, 07:51 AM
Hi samin,

Most probably you have an appointment which Start Date is after End Date. This is causing problems with RadScheduleView. We will try to improve the error message in a future release.

If you are sure that appointments are correct (e.g. End date is bigger than Start date) please send us demo project so that we can reproduce this error.

Regards,
Hristo
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
samin
Top achievements
Rank 1
answered on 10 May 2011, 05:46 AM
You are right ...thanks
Tags
ScheduleView
Asked by
samin
Top achievements
Rank 1
Answers by
Hristo
Telerik team
samin
Top achievements
Rank 1
Share this question
or