RadComboBox Auto-Selects Contents

5 posts, 0 answers
  1. Julian Rayner
    Julian Rayner avatar
    2 posts
    Member since:
    Apr 2008

    Posted 02 Jul 2008 Link to this post

    Hello,
    When using a RadComboBox with AllowCustomText 'true' the combobox exhibits some _very_ annoying behaviour. Every time you click into the control it automatically selects the entire contents, and it is then very difficult to unselect.

    This makes is very hard to do many things, including:
     
    a) adding multiple items simply - aka by repeatedly selecting items from the completion list and having them appended to the combobox text
    b) add a custom entry manually
    c) edit an entry
    d) manually insert an entry between existing entries
    e) select an entry from the completion list to be inserted between existing entries
    f) etc

    Does anybody know a solution to this problem? How do I stop the auto-selection of content every time this control is selected?

     

  2. Rosi
    Admin
    Rosi avatar
    2529 posts

    Posted 03 Jul 2008 Link to this post

    Hello Julian,

    Have you set the MarkFirstMatch property to true? I suggest you set it to false and let us known how this goes.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Julian Rayner
    Julian Rayner avatar
    2 posts
    Member since:
    Apr 2008

    Posted 03 Jul 2008 Link to this post

    Hello,
    MarkFirstMatch is false

    <
    telerik:RadComboBox

    ID="cboContacts"

    OnClientFocus="contactLookup_OnClientFocus"

    OnClientBlur="contactLookup_OnClientBlur"

    OnClientItemsRequesting="contactLookup_OnClientItemsRequesting"

    OnClientSelectedIndexChanged="contactLookup_OnClientSelectedIndexChanged"

    runat="server"

    AllowCustomText="true"

    Width="300px"

    AutoCompleteSeparator=";"

    MarkFirstMatch="false"

    EnableLoadOnDemand="true"

    OnItemsRequested="contactLookup_ItemsRequested">

    </telerik:RadComboBox>

  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 07 Jul 2008 Link to this post

    Hi Julian,

    Can you tell us what exactly do you mean by
    "Every time you click into the control it automatically selects the entire contents, and it is then very difficult to unselect"

    When MarkFirstMatch is set to false - you can simply delete the text from the input area of the combobox and then the combobox will not have a selected item.

    Let us know how we can reproduce the problem.

    Thanks

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Mattias
    Mattias avatar
    1 posts
    Member since:
    Dec 2010

    Posted 06 Dec 2010 Link to this post

    Hi,

    Did you ever solve this? I'm having the exact same problem.

    If I start to fill out something and then click the input box everything in it gets selected. The only way to continue typing is to use "arrow right". Otherwise everything will be written over.

    Regards

    /Mattias
Back to Top