[CLOSED] Value of combobox

  1. #1

    [CLOSED] Value of combobox

    How to know, in a combobox with ForceSelection = false, if user is selecting an item included in the selectable items or freely typing a value, since getValue() always returns a value (the value of the selected item in the first case and the text typed in the second)?
    Last edited by Daniil; Sep 16, 2014 at 10:49 AM. Reason: [CLOSED]
  2. #2
    Hi @josegarcia,

    I would call .getValue() and try to find a record by that value in a ComboBox's Store. If find some record, it probably means that a user has selected an existing item, if nothing - he has typed it. Theoretically.

Similar Threads

  1. Replies: 5
    Last Post: Mar 15, 2013, 4:24 AM
  2. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  3. Replies: 4
    Last Post: Sep 28, 2011, 8:57 AM
  4. Replies: 1
    Last Post: Apr 17, 2011, 1:21 PM
  5. Replies: 6
    Last Post: Mar 20, 2009, 5:39 PM

Posting Permissions