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

DropDownList with Textediting and selection

2 Answers 72 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Steven Randlett
Top achievements
Rank 1
Steven Randlett asked on 13 May 2011, 04:27 PM
I have been browsing the forums searching for a solution to a DropDownList problem.  Our users want to be able to type into the drop down list editor and have the drop down list suggest matches in the list or accept whatever text is typed into the editor portion of the control.  We are using a DropDownList with DropDownStyle = DropDown and AutoComplete = Suggest

Currently, when users type in a series of characters in the editor portion of the control which does not match any item in the list, the control refuses to give up focus so users cannot press the "Save" button. 

For example, if the list consists of the following items:

ABC123
ABCXYZ
ABQRSTU
A12345

when the user types "A", the control suggests all four choices.  When the users types "AB", the control suggests the first three choices.  If the user continues typing "ABCD" the control has no suggestions.  At this point, the control will refuse to give up focus so the user can press the "Save" button to save the text entered, namely "ABCD".

in short, we want the drop down list to be both a drop down list and a text box.

Any suggestions would be appreciated!  Thank you "in advance" for your expertise.

2 Answers, 1 is accepted

Sort by
0
Steven Randlett
Top achievements
Rank 1
answered on 13 May 2011, 04:38 PM
Just found the soltuion to this problem - change CausesValidation to False and the control functions as intended.
0
Peter
Telerik team
answered on 18 May 2011, 04:27 PM
Hi Steven Randlett,

Thank you for contacting us.

Probably I am missing something. I could not reproduce the issue with my test project. I would kindly ask you send me a sample project where the issue occurs, this will help me to understand the specific scenario and provide you with accurate support.

I am looking forward your reply.

Kind regards, Peter
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
DropDownList
Asked by
Steven Randlett
Top achievements
Rank 1
Answers by
Steven Randlett
Top achievements
Rank 1
Peter
Telerik team
Share this question
or