RadComboBox

0 Answers 102 Views
ComboBox
alex
Top achievements
Rank 2
Bronze
Iron
Iron
alex asked on 09 Feb 2023, 09:26 PM | edited on 27 Apr 2023, 04:00 AM

Hi, I have a strange issue with your combo box.

I created a behavior that syncronize between the RadComboBox selected items to the ObservableCollection in thr view model.

I have two different xaml with one RadComboBox in each xaml and one ObservableCollection in each xaml (different collections).

The behavior was fully tested and works with WPF ListBox. When I use it with the RadComboBox I face a strange issue. Sometimes after data context is changed very fast (for example rows in GridView) the behavior stop synchronizing properly and some items are removed from the source collection.

Some inputs:

1. This is happening only with the RadComboBox

2. I tried your behavior from other forum question, but your behavior gets exception during update of the source collection (during the iteration of the target collection it says the it was changed).

I think that somehow you are changing the selected items collection of the RadGridView, so I am getting exceptions or executing additional collection changed events.

Questions:

1. Did you face something similar?

2. I couldn't reproduce in other application because my application is complex. Can you check your RadComboBox code and check if you are initializing the SelectedItems many times / updating the binding?

My window is always visible and the RadComboBox should not be initialized many times. I think that you initialize the SelectedItems collection many times in the CustomControl code.

 

 

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
alex
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or