This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hey, Im trying to use an combobox that is editable, the problem is that when selecting an item from the list raises the setValue in the DescriptorPropertyInfoAdapter class but when I type free text into it, the event doesnt get fired, is there an way of the event firing when changing the text. <DataTemplate x:Key='EditableQueueComboBox'> <ComboBox Name="myComboBox" SelectedValue="{Binding Value}" ItemsSource="{Binding Source={StaticResource QueueEntityCollection}}" SelectedValuePath="ID" DisplayMemberPath="Name" IsEditable="True" > </ComboBox> </DataTemplate>
Thanks, Justin
|
|
|
Looking at our built-in combo box-based editor, which supports typing into the text area, I see that we are binding SelectedItem rather than SelectedValue. Could you give that a try? If that doesn't work either then let me know and I will see if I can work something up for you. |
|
|
I tried to use the SelectedItem instead SelectedValue, I get the same result unfortunately |
|
|
Hello Justin, Looks like you may also need to bind Text. Here's my sample: XAML (with xmlns:s="clr-namespace:System;assembly=mscorlib" and xmlns:scs="clr-namespace:System.Collections.Specialized;assembly=System"): <Window.Resources> Data class: public class Baron : Observable When I type into the text area of the combo box, I see the Debug.WriteLine getting executed with the appropriate value. Hope this helps! |
|
|
Thanks Ivan, works great |
|