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

Automatically insert an item

2 Answers 50 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Joël
Top achievements
Rank 2
Joël asked on 27 Oct 2011, 04:44 PM
I have a RadComboBox with a list of strings as item. My RadComboBox has IsEditable property to True. I wanted to know how I could do that when the user enters a value in the input field of RadComboBox, it is added to the list of items if it is not already there?

2 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 28 Oct 2011, 01:00 PM
Hi Laurent,

I can suggest you the following solution: hook to the KeyUp event of the ComboBox and on the click of the insert key to add the item into your collection. Attached I am sending you a sample project which illustrates this approach.

Hope this helps.

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Joël
Top achievements
Rank 2
answered on 28 Oct 2011, 03:28 PM
This is too funny, that's exactly what I coded, pending your response. So I did the right thing. Thank you.
Tags
ComboBox
Asked by
Joël
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Joël
Top achievements
Rank 2
Share this question
or