Exception when clicking on grouped header

2 posts, 1 answers
  1. JensH
    JensH avatar
    3 posts
    Member since:
    Jul 2011

    Posted 26 Aug 2011 Link to this post


    I get an exception Exception as soon as I click on the dragged header of the RadGridView and I am not sure where I should look for the error. Searching the net did not bring me any new clues.

    I can reproduce the error every time:
    • I do a search and bind the results (ObservableCollection) to the ItemsSource property of the grid.
    • In the UI, I drag one of the columns onto the "Drag a column header here and drop it here to group by that column" area
    • After that I simply click once on that column header that I just dropped there.

    Right on this click I get the following exception:

    System.InvalidCastException: Das Objekt des Typs StyleSearchWeb kann nicht in Typ Telerik.Windows.Data.IGroup umgewandelt werden.
    bei Telerik.Windows.Data.FuncExtensions.<>c__DisplayClass1`2.<ToUntypedFunc>b__0(Object item)
    bei Telerik.Windows.Data.KeyedCollection.GetKeyByItem(Object value)
    bei Telerik.Windows.Data.KeyedCollection.IndexOf(Object value)
    bei Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item)
    bei Telerik.Windows.Data.QueryableCollectionView.TryRestorePreviousCurrency()
    bei Telerik.Windows.Data.QueryableCollectionView.InitializeCurrencyOnRefresh()
    bei Telerik.Windows.Data.QueryableCollectionView.RefreshOverride()
    bei Telerik.Windows.Data.QueryableCollectionView.RefreshInternal()
    bei Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer()
    bei Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh()
    bei Telerik.Windows.Data.QueryableCollectionView.OnGroupDescriptorsItemChanged(Object sender, ItemChangedEventArgs`1 e)
    bei Telerik.Windows.Data.ObservableItemCollection`1.RaiseGenericItemChanged(ItemChangedEventArgs`1 e)
    bei Telerik.Windows.Data.ObservableItemCollection`1.OnItemChanged(ItemChangedEventArgs`1 e)
    bei Telerik.Windows.Data.ObservableItemCollection`1.OnItemPropertyChanged(Object sender, PropertyChangedEventArgs e)
    bei System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
    bei Telerik.Windows.Data.DescriptorBase.OnPropertyChanged(PropertyChangedEventArgs args)
    bei Telerik.Windows.Data.DescriptorBase.OnPropertyChanged(String propertyName)
    bei Telerik.Windows.Data.GroupDescriptorBase.set_SortDirection(Nullable`1 value)
    bei Telerik.Windows.Data.GroupDescriptorExtensions.CycleGroupSortDirection(IGroupDescriptor descriptor)
    bei Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGroupSort(IGroupDescriptor descriptor)
    bei Telerik.Windows.Controls.GridView.GridViewDataControl.OnGroupPanelCellRequestGroupAction(Object sender, RequestGroupActionEventArgs e)

    (Unfortunatelly the exception text is in German, but simply translates into: "System.InvalidCastException: Unable to cast object of type A to type B. ")

    I am using RadControls for Silverlight Q2 2011, Product version 11.2.712.0.

    Do you have any ideas?

    (Edited for correctiong the exception text)
  2. Answer
    Yordanka avatar
    634 posts

    Posted 26 Aug 2011 Link to this post

    Hi Jensh,

    We currently work on resolving this problem. We will do our best to address it in one of the next internal builds or in the Q2 2011 SP1 which is expected in mid September.
    Best wishes,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top