This question is locked. New answers and comments are not allowed.
Hi,
The WCF RIA Services team released a new toolkit on 2 December, which included a MVVM friendly collection that supports server side paging, filtering and grouping. With the sdk datagrid it works as intended but with RadGridView it crashes with the following stack trace:
A example solution can be found in the following blogpost: http://blogs.msdn.com/b/kylemc/archive/2010/12/02/introducing-an-mvvm-friendly-domaindatasource-the-domaincollectionview.aspx
Just switch the sdk datagrid to a RadGridView and running the application causes it to instantly crashes.
Tomas
The WCF RIA Services team released a new toolkit on 2 December, which included a MVVM friendly collection that supports server side paging, filtering and grouping. With the sdk datagrid it works as intended but with RadGridView it crashes with the following stack trace:
at System.Windows.Data.CollectionView.VerifyRefreshNotDeferred()
at System.Windows.Data.CollectionView.get_CurrentItem()
at Microsoft.Windows.Data.DomainServices.CollectionViewWrapper.get_CurrentItem()
at Telerik.Windows.Data.DataItemCollection.UpdateCurrentItemFromSourceCollection()
at Telerik.Windows.Data.DataItemCollection.HandleCurrentItemChangeOfSourceCollectionView(Object sender, EventArgs args)
at Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.EventArgs>.ReceiveWeakEvent(Object sender, EventArgs args)
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
at Microsoft.Windows.Data.DomainServices.CollectionViewWrapper.OnPageChanged(EventArgs e)
at Microsoft.Windows.Data.DomainServices.CollectionViewWrapper.OnPagedCollectionViewPageChanged(Object sender, EventArgs e)
at Microsoft.Windows.Data.DomainServices.PagedCollectionViewBase.OnPageChanged(EventArgs e)
at Microsoft.Windows.Data.DomainServices.PagedCollectionViewBase.EndMoveToPage(Int32 pageIndex)
at Microsoft.Windows.Data.DomainServices.DomainCollectionView.DomainPagedCollectionView.CompleteMoveToPage(Int32 pageIndex)
at Microsoft.Windows.Data.DomainServices.DomainCollectionView.SyncToCurrentValues()
at Microsoft.Windows.Data.DomainServices.DomainCollectionView.OnLoadCompleted(Object sender, AsyncCompletedEventArgs e)
at Microsoft.Windows.Data.DomainServices.CollectionViewLoader.OnLoadCompleted(AsyncCompletedEventArgs e)
at Microsoft.Windows.Data.DomainServices.DomainCollectionViewLoader.OnLoadCompleted(Object sender, EventArgs e)
at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Object result)
at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(DomainClientResult result)
at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )
A example solution can be found in the following blogpost: http://blogs.msdn.com/b/kylemc/archive/2010/12/02/introducing-an-mvvm-friendly-domaindatasource-the-domaincollectionview.aspx
Just switch the sdk datagrid to a RadGridView and running the application causes it to instantly crashes.
Tomas