1. #1
    Sencha User Mango_lier's Avatar
    Join Date
    Apr 2007
    Posts
    193
    Vote Rating
    0
    Mango_lier is on a distinguished road

      0  

    Default Question about combobox config in designer

    Question about combobox config in designer


    Is it possible to specify the following code config in designer.
    Code:
            var City = new Ext.form.ComboBox({
                emptyText: "Please enter City",
                fieldLabel: "City",
                name: "City",
                hiddenName: "City",
                valueField: "ID",
                displayField: "City",
                editable: false,
                mode: "local",
                triggerAction: "all",
                anchor: "95%",
                store: new Ext.data.Store({
                    reader: new Ext.data.JsonReader({
                        root: "City",
                        id: "ID"
                    },
                    ["ID", "City"])
                })
                
            });

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,176
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    The following configurations are missing for ComboBox.
    valueField, displayField, editable, triggerAction

    Thanks for the quick test, we'll get these in the next version and yes this entire thing could be done via the designer.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User Mango_lier's Avatar
    Join Date
    Apr 2007
    Posts
    193
    Vote Rating
    0
    Mango_lier is on a distinguished road

      0  

    Default


    Thanks. Any possibility to reset the trial period, 1.0.0.5 is the first working revision on my machine.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,176
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Yes, take a look at your PM inbox.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha User mclarry's Avatar
    Join Date
    Mar 2010
    Posts
    2
    Vote Rating
    0
    mclarry is on a distinguished road

      0  

    Default


    Is possible to resize the combobox using ext designer?

  6. #6
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,176
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Yes, ComboBox's are width resizable (not height resizable) under the following restrictions.
    • Not used in an anchor/form layout
    • not used in a fit layout
    • Not within an EditorGrid Column
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  7. #7
    Sencha User
    Join Date
    Mar 2010
    Posts
    20
    Vote Rating
    0
    jackygurui is on a distinguished road

      0  

    Default


    Don't forget tpl is missing as well.

  8. #8
    Sencha User Mango_lier's Avatar
    Join Date
    Apr 2007
    Posts
    193
    Vote Rating
    0
    Mango_lier is on a distinguished road

      0  

    Default


    Quote Originally Posted by Mango_lier View Post
    Is it possible to specify the following code config in designer.
    Code:
            var City = new Ext.form.ComboBox({
                emptyText: "Please enter City",
                fieldLabel: "City",
                name: "City",
                hiddenName: "City",
                valueField: "ID",
                displayField: "City",
                editable: false,
                mode: "local",
                triggerAction: "all",
                anchor: "95%",
                store: new Ext.data.Store({
                    reader: new Ext.data.JsonReader({
                        root: "City",
                        id: "ID"
                    },
                    ["ID", "City"])
                })
                
            });
    I know few things are not supported in Designer yet but How do I specify the above in xtypes. Specifically the store part of it.

  9. #9
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,176
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Mango -

    After creating a store on the stores tab, you can link the store to the combobox.

    The generated code will use the storeId of the store and link it to the ComboBox through that method.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  10. #10
    Sencha User filippo.ferrari's Avatar
    Join Date
    Apr 2010
    Location
    Sanremo - Italy
    Posts
    126
    Vote Rating
    1
    filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute

      0  

    Default


    One more on comboboxes... does Designer will support 'listeners' and onSelect?

    A configuration like this will be managed by designer?

    Code:
    searchChiamanti = new Ext.form.ComboBox({
            fieldLabel: 'Chiamante',
            id: 'nome_chiamante',
            name: 'nome_chiamante',
            allowBlank: false,
            minLenght: 3,
            maxlenght: 50,
            store: dsChiamanti,
            displayField:'chiamante',
            valueField: 'chiamante',
            //typeAhead: false,
            loadingText: 'Ricerca in corso...',
            anchor:'95%',
            hideTrigger:true,
            triggerAction: 'all',
            tpl: resultTplChiamanti,
            itemSelector: 'div.combo-result-item',
            listeners: {
                  'focus': function() {  
                        do something...
                  },
                  'click': function() {  
                        do something...
                  },
                  'blur': function() { 
                        do something...
                  }
            },
            onSelect: function(record){
                        do something more...
            }
    
        });
    A suggestion how manage what you "don't want to manage" with designer, the ability to add a custom piece of code in the configuration of an element a key->value entry that the designer simply record and print in the exported files.

    Something like:

    | key | value |
    | listeners | 'the js/extjs code I want to assign to the listeners section...' |

    This method gives to Designer a little IDE support for basic action based on element.

    Very sorry for my english but I want to give you my contribution too.

    Regards

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