hi,
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.CreateContent()
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
System.Web.UI.Control.EnsureChildControls()
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.
regards,
Lam.