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

[Solved] RadGridView crash

2 Answers 166 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan
Top achievements
Rank 1
Dan asked on 18 Feb 2011, 04:55 AM

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)

2 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 21 Feb 2011, 07:02 PM
This is actually blocking our deployment and I'm wondering why Telerik people are showing no interest in this bug.
0
Rossen Hristov
Telerik team
answered on 22 Feb 2011, 10:03 AM
Hi Dan,

Can you try to bind them in the opposite way. In other words, bind the grid to the original collection and then bind the pager to RadGridView.Items. Is the behavior different?

Greetings,
Ross
the Telerik team
Tags
GridView
Asked by
Dan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or