1. #1
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65
    Vote Rating
    0
    paco_online is on a distinguished road

      0  

    Default CellEditor: ComboBox (different selections per row)

    CellEditor: ComboBox (different selections per row)


    hello,

    we have cell editor showing a combo box in our grid. but now we have the requirement to show not selections from the combo box, the number and type of selections depends on some properties in our model.

    is it possible to implement something like this? has anyone ideas?

    thx

  2. #2
    Ext User
    Join Date
    Oct 2008
    Posts
    6
    Vote Rating
    0
    17mounir is on a distinguished road

      0  

    Default


    I'm in the same case, my combo items changes according the current cell value.

    Is there a way to associate the Renderer (to access the cell value) and The Cell Editor (to access grid edition feature)?

    has anyone ideas?

    Thanks
    ________
    Mounir.B

  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    1
    Vote Rating
    0
    derdiusz is on a distinguished road

      0  

    Default


    you can try dynamicly load data for ComboBox store. In your listeners of grid put something like this:


    Code:
                                    beforeedit : function(event)
                                    {
                                        values = event.record.data.values;
                                        if(values.length > 0)
                                        {
                                            Ext.getCmp('editor-combo').store.loadData(values);
                                        }
                                        else
                                        {
                                            Ext.getCmp('editor-combo').store.loadData([]);
                                        }
                                       
                                    }
    editor-combo is a combobox used as cellEditor. On each record I store data I need - in variable "values". And before edit I load this values into a combobox store, so combobox items are custom per row

    And one important thing - store of ComboBox is a SimpleStore.

Thread Participants: 2

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..."