New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Specified argument was out of the range of valid values.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3163.0
Specified argument was out of the range of valid values. Parameter name: value error in Scheduler Timeline view
PROBLEM
The following error is encountered when the RadScheduler1.TimelineView.NumberOfSlots property is set to a big number and the column width is set in pixels so that Horizontal scroll appears. The issue is reproduced by having an appointment staring in one of the last slots in the view.
Server Error in '/' Application.
Specified argument was out of the range of valid values.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
|
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3163.0
DESCRIPTION
The position of an appointment is saved and uses Microsoft's Unit struct, which has a limited range - The Unit class can represent values only between -32768 and 32767.
SOLUTION
As this is a limitation of the .NET Framework's struct, the possible workarounds are:
-
Decreasing the number of slots per view;
-
Decreasing the width of the slots;
-
Removing the horizontal scrolling by setting the column width in percentages;