RadScheduler timelineview failed with the EndDate value 30-12-9999

2 posts, 1 answers
  1. Lam
    Lam avatar
    1 posts
    Member since:
    Jul 2012

    Posted 28 Sep 2015 Link to this post


    I think this is quite an extreme test but this is what happen:

    + Pass endDate to RadScheduler with the value of 30-12-9999 ( or 31-12-9999) the maximum date that a date control can support.

    Then RadScheduler run into a runtime error, below is the stack trace :

    System.DateTime.AddTicks(Int64 value)
    System.DateTime.Add(TimeSpan value)
    Telerik.Web.UI.Scheduler.Views.Timeline.Model.DataBind(AppointmentCollection appointments)
    Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Model.DataBind(AppointmentCollection appointments)
    Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
    Telerik.Web.UI.RadScheduler.LoadPostData(String postDataKey, NameValueCollection postCollection)


    The reason is : Radscheduler try to AddTick to a MaxDate value. (Currently the Timelineview.TimeSlotDuration  = 1 day - the defaulted value)

    My question : Why it failed even if I pass in 30-12-9999 . Because the MaxDate should be 31-12-9999

    I am thinking of only allow date <= 30-12-9999  ( but now it failed with this value 30-12-9999)

    And restrict it to 29-12-9999 does not look right.

     Any idea is much appreciated.





  2. Answer
    Ivan Danchev
    Ivan Danchev avatar
    1302 posts

    Posted 01 Oct 2015 Link to this post

    Hello Lam,

    I am afraid the RadScheduler is not designed to work with date values as big as 30.12.9999. For instance the upper year limit for the Appointments EndDate is 2099. I would suggest adding a Feature Request in our Feedback Portal if you believe such raise in the Date range is needed and would be useful.

    Ivan Danchev
    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 Feedback Portal and vote to affect the priority of the items
Back to Top