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. Image for the cookie policy date
close icon

How to bind a generic list/dictionary to a calendar

What I am trying to achieve is there is a service/api that I call in order to get what events fall on what day and based on that I bind the data to the calendar. The scenarios in the sample doesn't work because the calendar gets initialized before the service request is completed. Therefore, it is always blank events. My viewmodel calls the service and viewmodel binds to any control via the code behind file. Let me know if there is a better way to achieve this problem than what is already in the samples.

1 Reply

VV Vignesh V Syncfusion Team June 9, 2014 01:38 PM UTC

Hi Imran,

We have prepared a sample that tries to meet your requirement, 'Adding events to SfCalendar from Service/api' . In the sample we have provided a method named 'GetEvent' where dates and corresponding events can be updated.

Please find the sample in below link,

Please let us know if the sample meets your requirement.

Vignesh V

Live Chat Icon For mobile
Up arrow icon