how to display tow types events in SfScheduler

Hello,

I have an tow types  events (  WorkDayEvent , XEvent ) based on same super class XBaseEvent

When I run, i got this e


System.InvalidCastException : 'Impossible d'effectuer un cast d'un objet de type 'Models.WorkDayEvent' en type 'Models.XEvent'.'



1 Reply

SS SaiGanesh Sakthivel Syncfusion Team July 20, 2023 01:34 PM UTC

Hi Wang,


As per the implementation, the scheduler does not have support to display the two types of events in the view. We need more details to check the reported scenario from our side. Please share the following details, which will help us check on it and provide you with a solution as soon as possible. 


  • Share the details of requirements to achieve using the two event types.

  • Share the issue replicate sample or scheduler code snippet, appointment model, and ViewModel collection.


Regards,
SaiGanesh Sakthivel


Loader.
Up arrow icon