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

RadGridView Exception InvalidOperationException

1 Answer 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Greg Johnson
Top achievements
Rank 1
Greg Johnson asked on 20 Jul 2010, 04:50 PM
I am constantly getting this exception while updates are being sent to the RadGridView:

[0003467] [AppDomain      ] 2010-07-20T13:56:26.9251125Z ERROR    Disptcher Unhandled Exception: System.InvalidOperationException: Cannot change or check the contents or Current position of the QueryableCollectionView while Refresh is being deferred.
[0003468] [AppDomain      ]    at Telerik.Windows.Data.QueryableCollectionView.VerifyRefreshNotDeferred()
[0003469] [AppDomain      ]    at Telerik.Windows.Data.QueryableCollectionView.get_Count()
[0003470] [AppDomain      ]    at Telerik.Windows.Data.DataItemCollection.get_Count()
[0003471] [AppDomain      ]    at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.EnsureIndexTree()
[0003472] [AppDomain      ]    at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
[0003473] [AppDomain      ]    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
[0003474] [AppDomain      ]    at System.Windows.UIElement.Measure(Size availableSize)
[0003475] [AppDomain      ]    at System.Windows.ContextLayoutManager.UpdateLayout()
[0003476] [AppDomain      ]    at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
[0003477] [AppDomain      ]    at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
[0003478] [AppDomain      ]    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
[0003479] [AppDomain      ]    at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
[0003480] [AppDomain      ]    at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
[0003481] [AppDomain      ]    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[0003482] [AppDomain      ]    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


The exceptions become more numerous if you move the mouse over the grid while adding to the data collection, or updating fields in the collection elements. The updates are sent to the grid asynchronously from  a real time system.

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 21 Jul 2010, 10:13 AM
Hi Greg Johnson,

Could you please share with us the scenario and  the code that is causing this issue. Also what version of our control are you using?

All the best,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Greg Johnson
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or