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

Height must be non negative.

6 Answers 187 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
it-workz
Top achievements
Rank 1
it-workz asked on 21 Mar 2011, 02:47 PM
Hi,

I'm running in some trouble with the Sceduler when using the EnableExactTimeRendering="true" option.

I'm using the Telerik version  Q1 2011.

The error only occurs when the exact rendering is set tot True and it seems to happen when the following appointment is created:
2010-12-03 08:30:00.000 till 2010-12-03 13:10:00.000

The complete error message:

Height must be non negative.
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: Height must be non negative.
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: 
  
  
[ArgumentOutOfRangeException: Height must be non negative.
Parameter name: value]
   System.Web.UI.WebControls.Style.set_Height(Unit value) +8673920
   System.Web.UI.WebControls.WebControl.set_Height(Unit value) +30
   Telerik.Web.UI.AppointmentControl.CalculateSize() +376
   Telerik.Web.UI.DayViewAppointmentControl.CalculateSize() +83
   Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +1121
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +290
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +138
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent() +245
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent() +127
   Telerik.Web.UI.RadScheduler.CreateContent() +221
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +195
   Telerik.Web.UI.RadScheduler.CreateChildControls() +34
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
  
  

Markup:
<telerik:RadScheduler ID="rs_Planner" runat="server" Culture="Dutch (Netherlands)"
    DataKeyField="ID" DataStartField="datumtijdvan" DataEndField="datumtijdtot" DataSubjectField="TypeOmschrijving"
    EnableExactTimeRendering="true" HoursPanelTimeFormat="HHtt" LastDayOfWeek="Sunday"
    FirstDayOfWeek="Monday" OverflowBehavior="Expand" Width="100%">
    <WeekView ColumnHeaderDateFormat="ddd, d MMM" HeaderDateFormat="d-MMM-yyyy" />
    <Localization AdvancedAllDayEvent="All day" AdvancedCalendarCancel="Annuleren" AdvancedCalendarToday="Vandaag"
        HeaderDay="Dag" HeaderMonth="Maand" HeaderToday="Vandaag"></Localization>
    <ResourceStyles>
        <telerik:ResourceStyleMapping Type="TypeOmschrijving" Text="Ziek" ApplyCssClass="rsCategoryPink" />
        <telerik:ResourceStyleMapping Type="TypeOmschrijving" Text="Verwijderd" ApplyCssClass="rsCategoryOrange" />
        <telerik:ResourceStyleMapping Type="TypeOmschrijving" Text="Present" ApplyCssClass="rsCategoryGreen" />
        <telerik:ResourceStyleMapping Type="TypeOmschrijving" Text="Absent" ApplyCssClass="rsCategoryRed" />
        <telerik:ResourceStyleMapping Type="TypeOmschrijving" Text="Te laat" ApplyCssClass="rsCategoryYellow" />
        <telerik:ResourceStyleMapping Type="TypeOmschrijving" Text="Regulier absent" ApplyCssClass="rsCategoryGrey" />
    </ResourceStyles>
    <AdvancedForm DateFormat="d-M-yyyy" TimeFormat="H:mm" Modal="true"></AdvancedForm>
</telerik:RadScheduler>

VB.NET code:
Sub SetUpPlanningScheduler()
    ' set up views 
    rs_Planner.SelectedView = SchedulerViewType.WeekView 
    rs_Planner.MonthView.UserSelectable = False '
    rs_Planner.WeekView.UserSelectable = True
    rs_Planner.TimelineView.UserSelectable = False
    rs_Planner.DayView.UserSelectable = False
    ' appearance 
    rs_Planner.DayView.HeaderDateFormat = "dddd, dd MMMM yyyy"
    rs_Planner.ShowFooter = False
    rs_Planner.ShowAllDayRow = False
    rs_Planner.MinutesPerRow = 15
    rs_Planner.HoursPanelTimeFormat = "HH:mm"
    rs_Planner.FirstDayOfWeek = System.DayOfWeek.Monday
    rs_Planner.LastDayOfWeek = System.DayOfWeek.Friday
    rs_Planner.RowHeight = New Unit(16, UnitType.Pixel)
    ' set up data source 
    rs_Planner.DataKeyField = "ID"
    rs_Planner.DataStartField = "datumtijdvan"
    rs_Planner.DataEndField = "datumtijdtot"
    rs_Planner.DataSubjectField = "TypeOmschrijving"
    rs_Planner.DataDescriptionField = "Omschr"
    ' set up Resources 
    rs_Planner.ResourceTypes.Clear()
    Dim rt As New ResourceType("TypeOmschrijving")
    rt.KeyField = "TypeOmschrijving"
    rt.ForeignKeyField = "TypeOmschrijving"
    rt.TextField = "TypeOmschrijving"
    rs_Planner.ResourceTypes.Add(rt)
    rs_Planner.Resources.Add(New Resource("TypeOmschrijving", "Ziek", "Ziek"))
    rs_Planner.Resources.Add(New Resource("TypeOmschrijving", "Present", "Present"))
    rs_Planner.Resources.Add(New Resource("TypeOmschrijving", "Verwijderd", "Verwijderd"))
    rs_Planner.Resources.Add(New Resource("TypeOmschrijving", "Absent", "Absent"))
    rs_Planner.Resources.Add(New Resource("TypeOmschrijving", "Regulier absent", "Regulier absent"))
    rs_Planner.Resources.Add(New Resource("TypeOmschrijving", "Te laat", "Te laat"))
    rs_Planner.AllowDelete = False
    rs_Planner.AllowEdit = False
    rs_Planner.AllowInsert = False
    rs_Planner.ReadOnly = True 'dissallows moving
End Sub

Data that is loaded into the sceduler:
TypeOmschrijving    datumtijdvan    datumtijdtot
Te laat 2010-11-29 09:15:00.000 2010-11-29 09:24:00.000
Present 2010-11-29 09:24:00.000 2010-11-29 09:25:00.000
Verwijderd  2010-11-29 09:25:00.000 2010-11-29 10:00:00.000
Present 2010-11-29 10:25:00.000 2010-11-29 11:10:00.000
Present 2010-11-29 12:25:00.000 2010-11-29 13:55:00.000
Present 2010-11-29 14:10:00.000 2010-11-29 14:55:00.000
Present 2010-11-30 08:30:00.000 2010-11-30 09:15:00.000
Present 2010-11-30 09:15:00.000 2010-11-30 10:00:00.000
Present 2010-11-30 10:25:00.000 2010-11-30 11:46:00.000
Verwijderd  2010-11-30 11:46:00.000 2010-11-30 11:55:00.000
Present 2010-11-30 12:25:00.000 2010-11-30 13:55:00.000
Present 2010-11-30 14:10:00.000 2010-11-30 14:55:00.000
Present 2010-12-01 09:15:00.000 2010-12-01 10:00:00.000
Present 2010-12-01 10:25:00.000 2010-12-01 11:10:00.000
Present 2010-12-01 11:10:00.000 2010-12-01 11:55:00.000
Present 2010-12-01 12:25:00.000 2010-12-01 13:10:00.000
Present 2010-12-01 13:10:00.000 2010-12-01 14:55:00.000
Present 2010-12-02 08:30:00.000 2010-12-02 09:15:00.000
Present 2010-12-02 10:25:00.000 2010-12-02 11:55:00.000
Present 2010-12-02 13:10:00.000 2010-12-02 13:55:00.000
Present 2010-12-03 08:30:00.000 2010-12-03 13:10:00.000
Present 2010-12-06 09:15:00.000 2010-12-06 10:00:00.000
Present 2010-12-06 10:25:00.000 2010-12-06 11:10:00.000
Te laat 2010-12-06 12:25:00.000 2010-12-06 12:30:00.000
Present 2010-12-06 12:30:00.000 2010-12-06 13:55:00.000

6 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 28 Mar 2011, 12:56 PM
Hi Martijn,

I was not able to reproduce the problem you experience. Could you, please, check again if you are targeting the Q1 2011 version? This problem which you describe is a known previous issue with Exact Time Rendering in RadScheduler, but was fixed in previous releases.


Regards,
Nikolay Tsenkov
the Telerik team
0
it-workz
Top achievements
Rank 1
answered on 15 Apr 2011, 11:42 AM
Hi,

Sorry it took so long to come back to you, but yes even with the latest update of v 2011.1.413.35 i get the error.

I'll create a support ticket and submit my files so you can try to recreate it.
0
Nikolay Tsenkov
Telerik team
answered on 20 Apr 2011, 11:00 AM
Hi Martjin,

I was able to reproduce the problem you specify and it's already logged into our system.
We will do our best to fix it in time for SP2 of Q1 2011.

Please, accept, my sincere apologies for any inconvenience caused.

The key to workaround it is to only have appointments with duration no less then 5 min (with 30 minutes per row setting, which is the default for Day and Week Views).


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.

0
Accepted
Nikolay Tsenkov
Telerik team
answered on 09 May 2011, 09:32 AM
Hi Martjin,

I have some good news. We have resolved the bug. You can get the change with the next Latest Internal Build (should be sometime tomorrow). Or you can wait for the upcoming SP2 for the Q1 2011 release.


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.

0
Ramraj
Top achievements
Rank 1
answered on 02 Apr 2014, 06:11 AM
Hi,
I have created an recurring event for same day with starting time 11.45 PM on 04-mar-2014 and set the recurring minutes as 8 and set the end after as 5. when i select the 4th march the scheduled event is displayed but when click the next day icon in header its not showing the next day. i have set the Enable exact rendering to true. please suggest a solution to solve this issue.
0
Plamen
Telerik team
answered on 07 Apr 2014, 05:07 AM
Hello,

The described scenario is not quite clear because of the following phrase- "set the recurring minutes as 8". By default RadScheduler does not have a minute recurring functionality. Would you please elaborate a little bit deeper the exact steps that will replicate the unusual behavior so we could inspect it and be more helpful? Please let us know if it can be replicated on this on-line demo too.

Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
it-workz
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
it-workz
Top achievements
Rank 1
Ramraj
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or