The appt times in our database are recorded as ints (0-2400).
This seems to cause a converison issue. We must leave the time formats as is in the database, so how can I work around this on the telerik side of the issue
?
Thanks,
Zach McCain
InvalidCastException: Invalid cast from 'Int16' to 'DateTime'.]
System.Int16.System.IConvertible.ToDateTime(IFormatProvider provider) +159
System.Convert.ToDateTime(Object value) +29
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +489
Telerik.Web.UI.RadScheduler.PerformSelect() +186
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
Telerik.Web.UI.RadScheduler.EnsureDataBound() +24
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +107
Telerik.Web.UI.RadScheduler.CreateChildControls() +29
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
This seems to cause a converison issue. We must leave the time formats as is in the database, so how can I work around this on the telerik side of the issue
?
Thanks,
Zach McCain
InvalidCastException: Invalid cast from 'Int16' to 'DateTime'.]
System.Int16.System.IConvertible.ToDateTime(IFormatProvider provider) +159
System.Convert.ToDateTime(Object value) +29
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +489
Telerik.Web.UI.RadScheduler.PerformSelect() +186
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
Telerik.Web.UI.RadScheduler.EnsureDataBound() +24
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +107
Telerik.Web.UI.RadScheduler.CreateChildControls() +29
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041