SelectedItemsBehavior Error

0 Answers 59 Views
GridView
Vlad
Top achievements
Rank 1
Vlad asked on 14 Apr 2023, 02:57 AM
Hello!
I am using Telerik GridView control in WPF application.
I wanted to use the SelectedItems Binding for GridView according article "SelectedItemsBehavior fixes for crashes, changing DataContext" at https://www.telerik.com/forums/selecteditemsbehavior-fixes-for-crashes-changing-datacontext.
I downloaded the example from the link from github, but I had a problem: the downloaded example does not work...
After starting the programm, when trying to select a row, the application throws the error "cannot change ObservableCollection during a CollectionChanged event".
In the comments, one of the users wrote about this error, to which the author replied that he had updated the code on the github and now this error has been fixed. But I still get an error. How do I fix the "MySelectedItemsBindingBehavior" class to make it work?
Martin Ivanov
Telerik team
commented on 18 Apr 2023, 03:35 PM

Hey Vlad, I've tested the following SDK example, but I couldn't recreate the issue. Can you check if this is the example you are using? Also, can you send over your version of the example that recreates the issue and also tell me which version of Telerik you are using?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Vlad
Top achievements
Rank 1
Share this question
or