Completed
Last Updated: 17 Aug 2016 10:42 by ADMIN
ADMIN
Telerik Admin
Created on: 25 Feb 2011 16:04
Category: ComboBox
Type: Bug Report
10
ComboBox: SelectedValue Binding updates the old DataContext when the DataContext is changed.
RadComboBox with bound ItemsSource and SelectedValue to the DataContext. When the DataContext is changed and the new DataContext ItemsSource does not contain the currently selected item, the old DataContext SelectedValue is set to null. This problem does not occur in WPF.
5 comments
ADMIN
Kalin
Posted on: 17 Aug 2016 10:42
Hi John,

The issue logged in this bug report was caused by a framework behavior of the Silverlight Selector class (the native SL ComboBox behaved the same way). The exact issue was that when changing the ItemsSource at run time the SelectedValue was set null by the framework, afterward was not possible to restore the previous SelectedValue (as it was cleared by the binding) when the same ItemsSource is used. 

However in Silverlight 5 project this works as expected. I'm attaching a sample project that demonstrates the exact scenario - just press the Click button and observe the ComboBox behavior (the SelectedValue is not cleared).

If you still experience any issues with RadComboBox, I would like to ask you to open up a support ticket for RadComboBox provide sample project demonstrating the exact issue you are observing.

Regards,
Kalin
Attached Files:
John
Posted on: 17 Aug 2016 03:12
Hi Kalin, can you tell me which version of the controls this was fixed in? As it is still an issue in my application, and I believe I have the latest version of the controls.

Thanks
ADMIN
Kalin
Posted on: 16 Aug 2016 13:46
Hi,

This works as expected in Silverlight 5 application.

Regards,
Kalin
John
Posted on: 02 Sep 2014 01:13
Yes please! This is still a very annoying problem for me!
Stefan Buys
Posted on: 29 Jun 2011 06:52
This is a highly frustrating problem especially when faced with forms that has several RadComboBox controls. Please Telerik, take some initiative here and fix - don't for Microsoft to fix the base control(s).