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

SelectedItem property not updated on Collection change event

1 Answer 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Damian Slee
Top achievements
Rank 1
Damian Slee asked on 24 May 2010, 06:50 AM
I had this same issue with RadGrid, which appeared to have been fixed in 0422 2010.

I am encountering the same issue in RadComboBox now i am using this instead of a grid.

If RadComboBox is bound to a observable collection, and there is a  change to an item in the collection (ie replace an object in the collection), the RadComboBox SelectedItem property points to the old instance of the object that was in the collection.

Also if an update collection event occurs, the displayed/selected item, does not seem to update.  Eg.  Combo box displays Person names collection.   Another textbox modifies the name, INotifyPropertyChange is generated, then CollectionChange event is generated, but combo box displays original value.

Work around is to externally catch the collection change/update event and update RadComboBox SelectedItem to the new object instance.

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 26 May 2010, 07:38 PM
Hello Damian Slee,

We tested the issue, however we are unable to reproduce the bug. Could you please send us a sample project  where the bug can be observed or add the code you are using. In order to attach a project you need to open a support ticket as you can not attach files in forum threads.

I will be waiting for your answer.

Greetings,
Boyan
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
ComboBox
Asked by
Damian Slee
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or