SFSchedule DataSource NullReferenceException

Hi, I'm using a ViewModel to get the data from my DB using a custom class, I set the things just as is placed in the API but it ends in "NullReferenceException" and I dont know why.

I use the ScheduleAppointmentMapping to get the correct data in my custom class

Attachment: TCita_17fbae7d.zip

3 Replies

SG Swathi Gopal Syncfusion Team May 7, 2018 07:16 AM UTC

Hi Marbella,

Thanks for contacting Syncfusion support.

Based on the provided information, we have checked, and we suspect that mentioned null reference exception issue occurs due to incorrect mapping of custom appointment property name (ColorMapping to be mapped as "ColorCita" instead of "Color" according to your project). Also, we have created a simple sample, creating appointment using custom appointment mapping in Schedule Xamarin Forms. Kindly find the sample below,

Sample:  AppointmentMapping_Forms

Kindly check with the provided sample with our latest version and if still issue prevails, could you please revert us with modifying the provided sample with more information such as Schedule version used and issue reproducing scenario. It will be helpful for us to analyze on it and provide you better solution.

Regards,
Swathi G


MA Marbella May 8, 2018 09:02 PM UTC

Hey! Thanks so much It was my error and It is solved!


GC Ganeshamoorthy Chandramoorthy Syncfusion Team May 9, 2018 04:56 AM UTC

Hi Marbella, 
 
Thanks for the update. Please let us know if you need further assistance on this. 
 
Regards, 
Ganeshamoorthy C 


Loader.
Up arrow icon