1. #31
    Ext JS Premium Member prophet's Avatar
    Join Date
    Mar 2007
    Location
    Greenwich, CT
    Posts
    186
    Vote Rating
    0
    prophet is on a distinguished road

      0  

    Default


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

  2. #32
    Ext User
    Join Date
    Mar 2010
    Posts
    11
    Vote Rating
    0
    j0452 is on a distinguished road

      0  

    Default correct way to unset selection?

    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 - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,729
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      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
    #SenchaArchitect
    Sencha Architect Development Team

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar