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

Error using QueryableCollectionView

4 Answers 122 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 01 Mar 2012, 08:32 AM
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()

4 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 06 Mar 2012, 10:46 AM
Hello,

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,
Rosi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 07 Mar 2012, 06:27 PM
Thanks for the answer. We will then wait patiently. :-)
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 06 Jul 2012, 08:16 AM
Hi,

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

Regards
Neils
0
Miroslav Nedyalkov
Telerik team
answered on 11 Jul 2012, 08:55 AM
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.

Greetings,
Miroslav Nedyalkov
the Telerik team

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

Tags
ScheduleView
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Rosi
Telerik team
Heiko
Top achievements
Rank 1
Iron
Veteran
Miroslav Nedyalkov
Telerik team
Share this question
or