This is a migrated thread and some comments may be shown as answers.

Calendar highlight special dates from observablecollection in MVVM

1 Answer 89 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 2
Boris asked on 18 Jan 2011, 01:38 PM
Is it possible to databind highlighted dates with an observable collection? Something similar as Calendar First look. The only trouble is that the collection of events is retreived asynchronously and the event collection is not available at render time.

Sorry if I'm repeating a question that may already have been asked, but I couldn't find the solution for this problem. 

When I tried to recreate the example and use the EventsCollection as a {Binding Path=...} I received an error telling unable to cast object of type System.Data.Binding to ...ObservableCollection...

Is there a property or a method I could dynamically call with the INotifyPropertyChanged interface to update the special dates?

Thanks in advance.
Kind regards,
Boris Gomiunik

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 21 Jan 2011, 08:46 AM
Hello Boris,

The idea here is to retemplate the calendar when your collection changed. Find the attached sample as a demonstration of what i mean.

Regards,
Kaloyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Calendar
Asked by
Boris
Top achievements
Rank 2
Answers by
Kaloyan
Telerik team
Share this question
or