This question is locked. New answers and comments are not allowed.
I have a RadGridView control with it's ItemSource set to this ItemsSource="{Binding PagedSource, ElementName=radDataPager}" then I set the .Source of the dataPages to my Collection. This works great I can go to pages etc no problem. Until I try to group by columns. If I'm on the first page everythig works fine. If I switch to a page 2 and beyond I get a crash. Could anyone help me with this issue?
Here is the stack trace:
____ An unhandled exception (‘Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: SystemJnvalidCastException: Unable to cast object of type
‘myUI.l.Changel isV to type Telerik.Windows.DataJGroup’.
at System.Linq.Enumerable.<Castlterator>d_bl’1.MoveNexto
at Telerik.Windows.Data.GroupExtensions.LeaflndexOf(IEnumerable’1
groups, Object item)
at
Telerik.Windows.Data.QueryableCollectionView.G roupedlndexOf(Object
item)
at Telerik.Windows.Data.QueryableCollectionViewlnternallndexOf(Object
item)
at Telerik.Wi ndows.Data.QueryableCollectionViewJndexOf(Object item)
at Telerik.Wi ndows.Data.QueryableCollectionView.MoveCu rrentTo(Object
item)
at Telerik.Wi ndows.Data.DataltemCol lection.MoveCu rrentTo(Object item)
at
Telerik.Windows.Data.DataltemCollection.UpdateCurrentltemFromSource...
at
Telerik.Windows.Data.DataltemCollection.HandleCu rrenthemChangeOfSo...
sender, EventArgs args)
at
Telerik.Windows.Data.DataltemCol lection,Telerik.Wi ndows.Data.lWeakEve...
sender, EventArgs args)