[CLOSED] Simple combobox question

  1. #1

    [CLOSED] Simple combobox question

    I have a simple combobox.
    when the user types, it filters the selection and then they choose it.
    problem is if the user types something random
    so let's say the combobox has the 50 states.
    but the user just types 1 and tabs out. that 1 is then sent to the backend.
    how can I validate/force the user to select one of the options AND still let them type to filter.
    I don't want to enable false so they are forced to select it from dropdown, I still want the filter by text to work.
    thanks,
    /Z

                                                <ext:ComboBox
                                                    ID="ComboBox1"
                                                    runat="server"
                                                    TriggerAction="All"
                                                    QueryMode="Local"
                                                    StoreID="Store1"
                                                    DisplayField="description"
                                                    ValueField="id">
                                                    <Plugins>
                                                        <ext:ClearButton runat="server" />
                                                    </Plugins>
                                                </ext:ComboBox>
  2. #2
    Hello @Z!

    Isn't it Ext.form.field.ComboBox.forceSelection setting you want?

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    it is. i had tried it and it didnt work for some reason. i just tried it again and it worked.
    thanks,.
    /Z
  4. #4
    Glad it helped, @Z! Thanks for the feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Simple combo box question
    By rmelancon in forum 2.x Premium Help
    Replies: 2
    Last Post: May 06, 2014, 11:42 AM
  2. Just Simple Question About TreePanel
    By teamsar in forum 2.x Help
    Replies: 3
    Last Post: Jan 26, 2013, 3:23 AM
  3. [CLOSED] DateFiled simple question
    By Pyropace in forum 2.x Premium Help
    Replies: 3
    Last Post: Dec 15, 2012, 10:37 PM
  4. [CLOSED] Simple radiogroup question
    By Jurke in forum 1.x Premium Help
    Replies: 4
    Last Post: Apr 24, 2009, 5:56 AM
  5. [CLOSED] Simple date render question
    By Jurke in forum 1.x Premium Help
    Replies: 2
    Last Post: Dec 05, 2008, 1:31 PM

Posting Permissions