)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind JSON data to Schedule?

Platform: Xamarin.Forms |
Control: SfSchedule |
Published Date: October 31, 2018 |
Last Revised Date: October 31, 2018
Tags: json

How to bind JSON data to Schedule?

You can bind data to the schedule appointments from JSON by following the steps:

 

  1. Create a JSON data model.

C#

Note: Convert String type into DateTime type when adding items to the local collection from JSON data model, since JSON does not support DateTime type.

 

  1. Create data for the data model.

C#

 

  1. Deserialize the JSON data as list of JSON data model.

C#

 

  1. Create another class other than JSON data modal class for appointment mapping, since JSON data modal class does not support certain data types.

C#

Refer to the following UG link for more details about creating custom appointment mapping:

 

https://help.syncfusion.com/xamarin/sfschedule/getting-started#adding-custom-appointments

 

  1. Add the JSON data list into the appointment collection (Meetings).

C#

 

 

  1. Bind it to a schedule using the SfSchedule.DataSource property.

XAML

 

Sample:

 

https://github.com/SyncfusionExamples/How-to-bind-JSON-data-to-schedule-in-xamarin-forms

 

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon