1. #1
    Ext JS Premium Member jadrake75's Avatar
    Join Date
    Sep 2008
    Posts
    108
    Vote Rating
    4
    jadrake75 is on a distinguished road

      0  

    Default Getting the current Model selected from a ComboBox

    Getting the current Model selected from a ComboBox


    I have a situation where I have a slaveStore (ie. a masterStore controls its content) attached to a combobox. The displayValue is set to the Model's name. When the store is updated (from a master store update), and the current selected Model has it's name updated, the ComboBox is not having its text field updated with the value from the store update (there is no selection occuring here)

    Through debugging, I see there is a field lastSelection on the ComboBox which appears to give me the pre-modified model (first item in the array) which I can use to get the latest model from the store and call select(). This works, but I don't like the fact I am using an unsanctioned/documented property. Is there any other way to get the current selected Model of the ComboBox? getRawValue() and getValue() and getModelData() all return the name shown of the text field and not the model itself. There doesn't seem to be a selectionModel which I would have expected.

    Is there another way?
    Stamp Image Bursting Application
    see http://code.google.com/p/stamp-imagebursting/

  2. #2
    Ext JS Premium Member jadrake75's Avatar
    Join Date
    Sep 2008
    Posts
    108
    Vote Rating
    4
    jadrake75 is on a distinguished road

      0  

    Default


    I should also mention that in some respects I would have thought this to be a bug. If the store is updated and the combobox (forceSelection and read-only) is bound to it, shouldn't the text field be updated automatically to reflect the change in the store value?
    Stamp Image Bursting Application
    see http://code.google.com/p/stamp-imagebursting/

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi