Calendar highlight special dates from observablecollection in MVVM

2 posts, 0 answers
  1. Boris
    Boris avatar
    3 posts
    Member since:
    Oct 2010

    Posted 18 Jan 2011 Link to this post

    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

  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 21 Jan 2011 Link to this post

    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.

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft R3 2016 release webinar banner
Back to Top