DropDownList with Textediting and selection

3 posts, 0 answers
  1. Steven Randlett
    Steven Randlett avatar
    7 posts
    Member since:
    Sep 2009

    Posted 13 May 2011 Link to this post

    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. Steven Randlett
    Steven Randlett avatar
    7 posts
    Member since:
    Sep 2009

    Posted 13 May 2011 Link to this post

    Just found the soltuion to this problem - change CausesValidation to False and the control functions as intended.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 18 May 2011 Link to this post

    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.
Back to Top