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

Using combobox as a textbox

1 Answer 106 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kourosh
Top achievements
Rank 1
Kourosh asked on 02 Aug 2018, 08:09 AM

Hello Telerik,

I want Rad.ComboBox to be edited, i.e. I want to be able to search and select an item inside the combobox and also in case I don't have an item inside the combo, I would like to be able to type the new value and be able to bind the new item to save later.

What happens right now is that when the item I am looking for is not in combobox, as soon as I leave the combo the value inside the combobox is lost!

My question is how can I keep the search and auto-complete ability inside the combobox and also be able to keep the typed value?

Please answer asap.

Best Regards

Kourosh

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 03 Aug 2018, 11:16 AM
Hello Kourosh,

I am assuming that you have set IsEditable and IsReadOnly to True. Correct me if I am wrong. When these properties are set to true you will be able only to change the text in the 
RadComboBox if the type letter key match with the first letter of the items inside the combo box drop-down. On other hand, if IsReadOnly is set to False you can set custom text in the RadComboBox TextBox if none of the suggested items in the drop-down satisfy your needs. You can try setting the IsReadOnly to False on your side and let me know if it works for you.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ComboBox
Asked by
Kourosh
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or