Editable Combo Box

8 posts, 0 answers
  1. Dan Ehrmann
    Dan Ehrmann avatar
    151 posts
    Member since:
    Jul 2004

    Posted 05 May 2008 Link to this post

    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?

  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 06 May 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan Ehrmann
    Dan Ehrmann avatar
    151 posts
    Member since:
    Jul 2004

    Posted 06 May 2008 Link to this post

    Oh - duh. Sorry to bother you with a simple question like that.

    I don't see it in the demo, however.
  5. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 06 May 2008 Link to this post

    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
  6. MV
    MV avatar
    21 posts
    Member since:
    Dec 2015

    Posted 11 May Link to this post

    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!

  7. Peter Milchev
    Admin
    Peter Milchev avatar
    136 posts

    Posted 16 May Link to this post

    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.
  8. MV
    MV avatar
    21 posts
    Member since:
    Dec 2015

    Posted 19 May in reply to Peter Milchev Link to this post

    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.

  9. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 22 May Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017