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

Editable Combo Box

7 Answers 577 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 05 May 2008, 08:09 PM
Is it possible to create an editable combo box, where the user can either select from the list, or type in any text at all (even if it is not in the list)?

If not, can be added in a future version?

7 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 06 May 2008, 07:21 AM
Hello Dan Ehrmann,

All you have to do is to set the  AllowCustomText property to true. This property will allow the user to enter text in RadComboBox.

You can see our online example for a reference.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dan Ehrmann
Top achievements
Rank 1
answered on 06 May 2008, 02:21 PM
Oh - duh. Sorry to bother you with a simple question like that.

I don't see it in the demo, however.
0
Nikolay
Telerik team
answered on 06 May 2008, 02:37 PM
Hello Dan Ehrmann,

If you check the ASPX section of the example, you will notice that the AllowCustomText property is set to true in the combobox declaration:

<telerik:RadComboBox ID="RadComboBox1" runat="server" Height="140px" Skin="Default"
            Width="150px" ShowToggleImage="True" AllowCustomText="True" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"
            OnTextChanged="RadComboBox1_TextChanged">
        </telerik:RadComboBox>



All the best,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
MV
Top achievements
Rank 1
answered on 11 May 2016, 09:58 PM

I have a RadComboBox with Checkboxes="True" and AllowCustomText = "True". I want the user to be able to select from the list and also add text. For example:

<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server" CheckBoxes="true"
 bel="Select book genres:" AllowCustomText="true" iseditable="true"><Items>
    <telerik:RadComboBoxItem Text="Arts" />
    <telerik:RadComboBoxItem Text="Biographies" />
    <telerik:RadComboBoxItem Text="Children's Books" />
    <telerik:RadComboBoxItem Text="Computers & Internet" />
    <telerik:RadComboBoxItem Text="Cooking" />                               
                                        </Items>
                                 </telerik:RadComboBox>

" Cooking maybe Arts or Biographies from 1990".  Is this possible? Also, how can I get rid of the commas?

Thank you!

0
Peter Milchev
Telerik team
answered on 16 May 2016, 12:15 PM
Hello Mv,

Here is an article in the documentation with the supported scenarios of the checkbox functionality in RadComboBox. As you can see custom entries are not supported with the checkboxes. Also the comma is the default separator for the selected items and it is not customizable. I would suggest you try to implement your scenario using the RadAutoCompleteBox.

Regards,
Peter Milchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
MV
Top achievements
Rank 1
answered on 19 May 2016, 08:07 PM

Thanks, I was able to do it using the RadAutoCompleteBox.

 

According to the following link,

http://docs.telerik.com/devtools/winforms/api/html/Properties_T_Telerik_WinControls_UI_RadAutoCompleteBox.htm

RadAutoCompleteBox has the Multiline property, but when I try to use it (Multiline="True"), it doesn't do anything.

0
Ivan Zhekov
Telerik team
answered on 23 May 2016, 07:24 AM
You are looking at the documentation for WinForms and not WebForms. There are slight differences between the feathers for web and desktop.

As of now, there is no such property for the web (webforms) version of RadAutoCompleteBox.

Regards,
Ivan Zhekov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ComboBox
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Dan Ehrmann
Top achievements
Rank 1
Nikolay
Telerik team
MV
Top achievements
Rank 1
Peter Milchev
Telerik team
Ivan Zhekov
Telerik team
Share this question
or