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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamic DataBinding with SfCalendar

Thread ID:

Created:

Updated:

Platform:

Replies:

115277 Jan 8,2014 05:21 PM UTC Jan 16,2014 11:04 AM UTC WinRT 3
loading
Tags: General
Daniele
Asked On January 8, 2014 05:21 PM UTC

Hi I'm using the calendar component and what I'm not be able to do

is to bind the calendar to a ObservableCollection property of the ViewModel of the page.

The type of the  ObservableCollection will be a custom type and one attribute of the custom type

will be showed in the cells of the calendar with the number of the day.

The ObservableCollection is populated from a database and if I add,modify or remove an item in the ObservableCollection the calendar must be updated automatically because the ViewModel of the page implement the INotifyPropertyChanged interface.

Is there a way to have this scenario?


Thanks

Daniele



 


Victory Jessie Selvam D [Syncfusion]
Replied On January 13, 2014 11:17 AM UTC

Hi Daniele,

 

Your requirement cannot be achieved with SfCalendar control.

 

SfCalendar control is derived from Control class, it doesn't support binding any collection to generate the content. Calendar view is updated with DateTime source internally in our source project and there is no possibility to change it from sample.

 

Please let us know if you need further assistance.

 

Regards,

Victory

Daniele
Replied On January 15, 2014 08:37 AM UTC

So, If I have understood well  If I want that the user delete some appointment I have to refresh the page to see the calendar updated?

Thanks

Daniele


Victory Jessie Selvam D [Syncfusion]
Replied On January 16, 2014 11:04 AM UTC

Hi Daniele,

 

Thanks for your update.

 

Query: So, If I have understood well  If I want that the user delete some appointment I have to refresh the page to see the calendar updated?

 

Yes you need to refresh the SfCalendar with Refresh() method when the user delete some appointment to see the Calendar updated.

 

Regards,

Victory

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;