Page 4 of 4 FirstFirst ... 234
Results 31 to 33 of 33

Thread: Ext.form.SelectBox (Make a ComboBox work behave like an HTML SELECT)

  1. #31
    Ext JS Premium Member prophet's Avatar
    Join Date
    Mar 2007
    Location
    Greenwich, CT
    Posts
    189
    Vote Rating
    0
      0  

    Default

    scottw's onSelect fix helped me quite a bit! Thanks scottw!

  2. #32
    Ext User
    Join Date
    Mar 2010
    Posts
    11
    Vote Rating
    0
      0  

    Default correct way to unset selection?

    I'm using a SelectBox for an optional field. When first rendered, the SelectBox has no selection. If you select something, there's no way to unset the SelectBox, all you can do is select a different option. What is the correct way to allow the user to unset the SelectBox?

    Adding an empty record to the SelectBox's store feels like a kludge. The SelectBox for the optional field in question shares a store with another SelectBox which is not optional. It would be wrong to add an empty record to the store since it would be invalid in the case of the required field. It also feels wrong to create a whole separate store just for the optional field. Is this use case supported? If not, what would be the correct way to support it? Perhaps SelectBox could accept a config parameter "allowUnset", which if true adds a blank option to the top of the list.

    Thanks in advance!

  3. #33
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    I wonder if we can get a gist or git repository for this plugin ...

    This would make it easier to see what the latest was
    Phil Strong
    @philstrong

Page 4 of 4 FirstFirst ... 234

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •