and added some items in code behind:
When the user enters a new value in the edit box this value disappears when leaving the RadComboBox to click a button.
The standard WPF ComboBox does not loose the new value.
Hot can I allow the user to enter a value that is not in the drop down list?
11 Answers, 1 is accepted
I suppose that you are using older version of RadComboBox, which contains an already fixed bug. Please, try the latest internal build, it should resolve the problem:
All the best,
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.
Unfortunately, the RadComboBox is not designed to accomplish such scenario. When a user types in the RadComboBox ( in edit mode) the combo only searches for matches in the items collection.
If you want to send the input text to your view model, I would suggest you to find the TextBox control, placed in the RadComboBox( in edit mode ). You could bind the Text property of the TextBox to yourSubJob property in the ViewModel. For example:
I hope this suits your needs. Please do not hesitate to contact us if you require any further information.
the Telerik team
I am facing the same problem. Can you please help me how to find this textbox inside radcombobox in mvvm pattern??
Can you pls help how can I find this textbox using mvvm pattern in wpf. I am also facing same issue.
Could you please share some more details on the exact scenario you need to achieve? RadComboBox exposes Text property which keeps the typed text, so you no longer need to get the TextBox inside. You can simply bind the Text property of the ComboBox to a property in the ViewModel.
Hope this helps.
What I can suggest you would be to check the ComboBox Validation example from our online demos on the following link:
The example is for Silverlight but you can use the same approach for WPF as well. Check the ViewModel class and the ValidateModel() and ValidateManufacturer() methods which actually do the validation. You can try to implement the same approach and modify the validation methods as needed.
Hope this will help you.
I'm using this code to implement an editable RadComboBox where it's authorized to write a value which isn't in ItemSource :
My RadComboBox :
But I have a problem : not all characters are accepted. And when characters are accepted, when I leave the RadComboBox, the text is deleted.
Have you got any idea about this behavior ?