Hi,
I'm using RadGridView with RiaDomainService for data binding.
On the LoadedData method getting the below error.
Any pointers will be of great help.
Message: System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid. Check InnerException for exception details. ---> System.InvalidOperationException: No method 'Count' on type 'System.Linq.Queryable' is compatible with the supplied arguments.
at System.Linq.Expressions.Expression.FindMethod(Type type, String methodName, Type[] typeArgs, Expression[] args, BindingFlags flags)
at System.Linq.Expressions.Expression.Call(Type type, String methodName, Type[] typeArguments, Expression[] arguments)
at Telerik.Windows.Data.QueryableExtensions.Count(IQueryable source)
at Telerik.Windows.Data.QueryableCollectionView.UpdateTotalItemCount()
at Telerik.Windows.Data.QueryableCollectionView.UpdateTotalItemCount(NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Windows.Controls.Ria.DomainDataSourceView.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Windows.Controls.Ria.DomainDataSourceView.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Windows.Data.EntityCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at System.Windows.Data.EntityCollectionView.RefreshView()
at System.Windows.Data.EntityCollectionView.RefreshOrDefer()
at System.Windows.Data.EntityCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
at System.Windows.Data.EntityCollectionView.<.ctor>b__0(Object sender, NotifyCollectionChangedEventArgs args)
at System.Windows.Controls.PagedEntityCollection.RaiseCollectionChanged(NotifyCollectionChangedAction action, Entity entity, Int32 index)
at System.Windows.Controls.PagedEntityCollection.CompleteLoad()
at System.Windows.Controls.DomainDataSource.ProcessLoadedEntities(LoadContext loadContext, IEnumerable`1 entities)
at System.Windows.Controls.DomainDataSource.DomainContext_Loaded(LoadedDataEventArgs e, LoadContext loadContext)
--- End of inner exception stack trace ---
at System.Windows.Ria.OperationBase.InvokeCompleteAction()
at System.Windows.Ria.OperationBase.Complete(Object result)
at System.Windows.Ria.LoadOperation.Complete(DomainClientResult result)
at System.Windows.Ria.DomainContext.CompleteLoad(IAsyncResult asyncResult)
at System.Windows.Ria.DomainContext.<>c__DisplayClass17.<Load>b__13(Object )
