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?
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?
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?