Completed
Last Updated: 29 Aug 2023 07:03 by ADMIN
Release LIB 2023.2.821 (21 Aug 2023)
Vladimir
Created on: 26 Jul 2023 13:37
Category: GridView
Type: Bug Report
0
GridView: InvalidOperationException is thrown when adding and removing items from different threads
An InvalidOperationException can be thrown when adding and removing items from the collection bound to the RadGridView from different threads. 
2 comments
ADMIN
Vladimir Stoyanov
Posted on: 15 Aug 2023 07:37

Hello Devel,

The scenario described in this item was not related to accessing properties of DependencyObjects in a background thread.

It was related to modifying an ObservableCollection that is bound to the ItemsSource of the RadGridView in a background thread which is allowed.

Regards,
Vladimir Stoyanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Devel
Posted on: 10 Aug 2023 10:47

Pardon me, but manipulating properties bound to WPF UI Thread should be done only from WPF UI Thread. 

 

This is basics for WPF and Telerik controls should not do anything with the threading, because it can lead to side effects and undesired behaviour.

https://stackoverflow.com/questions/9732709/the-calling-thread-cannot-access-this-object-because-a-different-thread-owns-it