Hello
I am using a XamComboEditor (2014.2).As ItemsSource I have a datatable with a string column named "unit".The content is for example "A", "B", "C".Bound with this control is a datarow and the containing column "unitvalue".
The XAML-code is as follows:<ig:XamComboEditor SelectedValue="{Binding Path=[UnitValue]}" DisplayMemberPath="Unit" SelectedValuePath="Unit" />
If unitvalue is "A", "B" or "C" the binding is working correctly.However if the unitvalue is = "D" then the previous value of the combobox just remains.Correct function would be, that the selection in the XamComboEditor is empty.What do I need to do, in order to achieve a functioning XamComboEditor as described above?
Best wishes,
A. Kasar
It Works. Thanks.
Hello Kasar,
That behavior is expected. In order to change this, I recommend creating a Behavior<T> and adding your own SelectedValue property. When this property is set to a value that does not exist in the XamComboEditor.ItemsSource, you can clear the combo editor's selection. I have attached a small sample that demonstrates this.