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

[Solved] Disable selecting all text when AllowCustomText=true

1 Answer 132 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Joshua Pena
Top achievements
Rank 1
Joshua Pena asked on 06 Jan 2010, 10:01 PM
I am trying to use the RadComboBox as a search input area (similar to google). Everything so far is working out well except for one minor annoyance. Every time you use the mouse pointer to click on the text in the box, all the text will be selected and if more text is entered, it will replace everything. This makes it very annoying if you need to change just a few characters at the very beginning of the text.

Quick example if I'm not being clear : 
1. User types "bbooks" into the search box
2. Realizes he typed two "b"s
3. Uses his mouse to click at the beginning of the text in the text box to erase one "b"
4. Now all the text is selected and if he types anything, all the text will be cleared.

Thanks in advance for any help.

1 Answer, 1 is accepted

Sort by
0
Joshua Pena
Top achievements
Rank 1
answered on 06 Jan 2010, 10:40 PM
I solved this problem by applying the following attribute:
EnableTextSelection="false"
Tags
ComboBox
Asked by
Joshua Pena
Top achievements
Rank 1
Answers by
Joshua Pena
Top achievements
Rank 1
Share this question
or