Error using QueryableCollectionView

5 posts, 1 answers
  1. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 01 Mar 2012 Link to this post

    ScheduleView, Version: Q2 2011 SP1

    Whenever I use a QueryableCollectionView (or in this case a QueryableDataServiceCollectionView) as an AppointmentSource for the ScheduleView control it runs into this error: "Not supported GroupDescription. Only PropertyGroupDescription is supported." There is no grouping, no sorting, no filters or whatever, but still I receive this error. Using an ObservableCollection does not produce this error, but this type of collection is not what I want to use since it has less features.
    To reproduce the error: create a QueryableCollectionView of type "Appointment", add one appointment, and set it as datacontext for a scheduleview control. Any idea what happens here? Stacktrace follows...

       bei Telerik.Windows.Data.QueryableCollectionView.AddOrUpdateGroupDescriptorForGroupDescriptions(GroupDescription description)
       bei Telerik.Windows.Data.QueryableCollectionView.AddGroupDescriptorsForMatchingGroupDescriptions(IEnumerable`1 addedDescriptions)
       bei Telerik.Windows.Data.QueryableCollectionView.OnGroupDescriptionsChanged(Object sender, NotifyCollectionChangedEventArgs e)
       bei System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       bei System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
       bei System.Collections.ObjectModel.Collection`1.Add(T item)
       bei Telerik.Windows.Controls.CollectionExtensions.<>c__DisplayClass1`1.<AddRange>b__0(T item)
       bei Telerik.Windows.Controls.CollectionExtensions.ForEach[T](IEnumerable`1 source, Action`1 action)
       bei Telerik.Windows.Controls.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items)
       bei Telerik.Windows.Controls.ScheduleView.ScheduleViewDataConnection.SetGroupingAndFiltering(IEnumerable`1 groupDescriptions)
       bei Telerik.Windows.Controls.ScheduleViewBase.RegenerateGroupHeaders()
       bei Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentSourceChanged(IEnumerable oldValue, IEnumerable newValue)
       bei Telerik.Windows.Controls.ScheduleViewBase.UpdateScheduleViewOnAppointmentSourceChanged(IEnumerable oldValue, IEnumerable newValue)
       bei Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       bei Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       bei System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       bei System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       bei System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
       bei System.Windows.Data.BindingExpression.SendDataToTarget()
       bei System.Windows.Data.BindingExpression.SourcePropertyChanged(PropertyPathListener sender, PropertyPathChangedEventArgs args)
       bei System.Windows.PropertyPathListener.ReconnectPath()
       bei System.Windows.Data.Debugging.BindingBreakPoint.<>c__DisplayClass4.<BreakOnSharedType>b__3()
  2. Answer
    Rosi avatar
    2529 posts

    Posted 06 Mar 2012 Link to this post


    Unfortunately RadScheduleView does not support QueryableCollectionView at this stage. We will do our best to change this for the next major version of the control. We are sorry for the inconvenience caused.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 07 Mar 2012 Link to this post

    Thanks for the answer. We will then wait patiently. :-)
  4. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 06 Jul 2012 Link to this post


    can someone confirm that this is changed in 2012.2 Version of ScheduleView?

  5. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Jul 2012 Link to this post

    Hi Neils,

    The QueriableCollectionView is not supported in the ScheduleView control yet. The problem is that the ScheduleView is using the collection view to group itself, but the GroupDescriptions used are not supported by the QueriableCollectionView. Unfortunately this problem is very deep into the core of the ScheduleView control and cannot be fixed easily so I cannot give you a concrete time frame when we will fix it, but I logged it in PITS where you can track its progress.

    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top