I am running into an error using the Q2 2009 release of RadControls for Silverlight. I currently have a simple SIlverlight application that uses Linq to Sql and a WCF service to retrieve data to populate the RadGridView. I am able to successfully load the RadGridView with data, but if i try to group or sort, I receive the error below:
Message: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.InvalidCastException: Unable to cast object of type 'Telerik.Windows.Data.DataRecord' to type 'Telerik.Windows.Data.GroupRecord'.
at Telerik.Windows.Controls.DataControl.FindRecord(Object dataItem)
at Telerik.Windows.Controls.GridView.GridViewDataControlExtensions.GetContainerFromDataItem(GridViewDataControl dataControl, Object item)
at Telerik.Windows.Controls.GridView.GridViewDataControl.SetIsCurrent(Object item, Boolean isCurrent)
at Telerik.Windows.Data.Selection.SelectionHandler.SetCurrentItemCore(Object item)
at Telerik.Windows.Data.Selection.SelectionHandler.InitializeCurrentItem()
at Telerik.Windows.Controls.DataControl.InitializeSelection()
at Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeSelection()
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnAsyncDataLoadWorkerWorkCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.<OnRun>b__1(Object state)
Line: 56
Char: 13
Code: 0
Any help would be greatly appreciated,
Ben
