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

RadComboBox Auto-Selects Contents

4 Answers 121 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Julian Rayner
Top achievements
Rank 1
Julian Rayner asked on 03 Jul 2008, 03:24 AM

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?

 

4 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 03 Jul 2008, 06:41 AM
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
0
Julian Rayner
Top achievements
Rank 1
answered on 04 Jul 2008, 01:41 AM
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>

0
Veselin Vasilev
Telerik team
answered on 07 Jul 2008, 12:32 PM
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
0
Mattias
Top achievements
Rank 1
answered on 06 Dec 2010, 09:13 PM
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
Tags
ComboBox
Asked by
Julian Rayner
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Julian Rayner
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or