We have an existing scheduler control with a custom event template and a complex AppointmentData model.
In the control version 18.1.0.52 the scheduler renders and works fine and without problems.
If we upgrade now to 18.2.0.44 and adjust also the css and js paths to
<link rel='nofollow' href="https://cdn.syncfusion.com/blazor/18.2.44/styles/bootstrap4.css" rel="stylesheet" />
<script src="https://cdn.syncfusion.com/blazor/18.2.44/syncfusion-blazor.min.js"></script>
the scheduler throws following error "Invalid cast from 'System.DateTime' to 'System.DateTimeOffset'".
If we disable the custom template for the events, the scheduler works fine. If we include our template and use our data model the controls throws the named error.
Also if we only do the following in the template:
...
<ScheduleViews>
<ScheduleView Option="View.TimelineDay">
<EventTemplate>
@{
var appointmentData = (context as EmployeeAppointment);
<span>@(appointmentData.Name)</span>
}
</EventTemplate>
</ScheduleViews
</ScheduleViews>
...
and not request the child properties or any DateTime property, the scheduler throws this error. What are the differences in this 2 versions?
Is it possible that it is the internal logic of the scheduler which request more than we want out of the data appointment or is it a scheduler problem?
We are sorry, we can't show you the whole code because of NDAs with our clients. But if you need more information let us know.
Thanks