I have events with no time. My raw data looks like this:
Start = 2009-04-29 00:00:00.000
End = 2009-04-29 00:00:00.000
When i try to load the calendar and bind I get the following error:
The added or subtracted value results in an un-representable DateTime. Parameter name: value
Start = 2009-04-29 00:00:00.000
End = 2009-04-29 00:00:00.000
When i try to load the calendar and bind I get the following error:
The added or subtracted value results in an un-representable DateTime. Parameter name: value
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="DayView" TimelineView-ShowInsertArea="true" |
StartInsertingInAdvancedForm="true" Skin="WebBlue" Width="750px" Height="650px" |
TimeZoneOffset="00:00:00" DayStartTime="00:00:00" DayEndTime="00:00:00" DataSourceID="AppointmentsDataSource" DataKeyField="TaskKeyID" |
DataSubjectField="TaskComment" DataStartField="WholeStart" DataEndField="WholeEnd" |
HoursPanelTimeFormat="htt" OnFormCreated="RadScheduler1_FormCreated" SelectedDate="" |
ValidationGroup="RadScheduler1"> |
<TimelineView UserSelectable="false" /> |
<AdvancedForm Modal="true" Width="450" MaximumHeight="450" /> |
<ResourceTypes> |
<telerik:ResourceType KeyField="TaskType" Name="Type" TextField="TaskType" ForeignKeyField="TaskType" |
DataSourceID="sdsTaskTypes" /> |
<telerik:ResourceType KeyField="PriorityText" Name="Priority" TextField="PriorityText" |
ForeignKeyField="PriorityText" DataSourceID="sdsPriority" /> |
</ResourceTypes> |
</telerik:RadScheduler> |
Error Message: The added or subtracted value results in an un-representable DateTime. Parameter name: value |
Stack Trace: at System.DateTime.Subtract(TimeSpan value) at Telerik.Web.UI.Scheduling.DateHelper.GetStartOfWeek (DateTime selectedDate, DayOfWeek weekStart) at Telerik.Web.UI.Scheduling.DateHelper.GetWeekLength(DateTime date, DayOfWeek firstDayOfWeek, DayOfWeek lastDayOfWeek) at Telerik.Web.UI.Scheduler.Views.Week.ModelBase..ctor(IScheduler owner) at Telerik.Web.UI.Scheduler.Views.Week.Model..ctor(IScheduler owner, IWeekTimeSlotFactory slotFactory, TimeSpan workDayStartTime, TimeSpan workDayEndTime) at Telerik.Web.UI.Scheduler.Views.Day.Model..ctor(IScheduler owner) at Telerik.Web.UI.Scheduler.Views.DayModelFactory.CreateModel() at Telerik.Web.UI.RadScheduler.CreateView() at Telerik.Web.UI.RadScheduler.OnDataPropertyChanged() at Telerik.Web.UI.RadScheduler.set_SelectedDate(DateTime value) at ASP.employee_calendar_aspx.__BuildControlRadScheduler1() in C:\Documents and Settings\ddownie\My Documents\Sasquatch\employee\Calendar.aspx:line 34 at ASP.employee_calendar_aspx.__BuildControlContent1(Control __ctrl) in C:\Documents and Settings\ddownie\My Documents\Sasquatch\employee\Calendar.aspx:line 5 at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) at ASP.employee_masterpage_master.__BuildControlContentPlaceHolder1() in C:\Documents and Settings\ddownie\My Documents\Sasquatch\Employee\MasterPage.master:line 204 at ASP.employee_masterpage_master.__BuildControlform1() in C:\Documents and Settings\ddownie\My Documents\Sasquatch\Employee\MasterPage.master:line 20 at ASP.employee_masterpage_master.__BuildControlTree(employee_masterpage_master __ctrl) in C:\Documents and Settings\ddownie\My Documents\Sasquatch\Employee\MasterPage.master:line 1 at ASP.employee_masterpage_master.FrameworkInitialize() in C:\Documents and Settings\ddownie\My Documents\Sasquatch\Employee\MasterPage.master.vb:line 912308 at System.Web.UI.UserControl.InitializeAsUserControlInternal() at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) at System.Web.UI.Page.get_Master() at System.Web.UI.Page.ApplyMasterPage() at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |