1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    38
    Vote Rating
    0
    jovasnimaro is on a distinguished road

      0  

    Default Diable a ComboBox through RadioGroup

    Diable a ComboBox through RadioGroup


    hi, i want to disable a comboBox when i select a radiobutton from a radioGroup but when i execute the code launches me the next error:

    Uncaught TypeError: Cannot call method 'setDisable(true)' of undefined

    My code is next:

    Code:
    Ext.create( 'Ext.form.Panel',{
        alias: 'widget.addewr',
        title: 'Add EWR',
        border: false,
        items:[    
        
        {
                xtype:'form',
                width: '500',
                border: false,
                items: [            
                {
                    xtype: 'radiogroup',
                    // Arrange radio buttons into two columns, distributed vertically
                    columns: 1,
                    vertical: true,
                    items: [
                    {
                        boxLabel: 'Validation',
                        name: 'val',
                        width: 400,
                        inputvalue: 1
                    },
                    {
                        xtype: 'form',
                        layout: 'hbox',
                        border: false,
                        items: [
                        {
                            //add combobox Select Validation phase
                            xtype: 'combobox',
                            name: 'validationcombo',
                            anchor: '100%'
                        },
                        {
                            xtype: 'splitter'
                        },
                        {
                            //add combobox Level
                            xtype: 'combobox',
                            name: 'levelcombo',
                            anchor: '100%'
                        }
                        ]
                    },
                    {
                        xtype: 'splitter'
                    },
                    {
                        // add the radio button for Verification
                        name: 'val',
                        boxLabel: 'Verification',
                        anchor: '100%',
                        inputvalue: 2,
                        checked: true,
                        listeners: {
                            click: {
                                element: 'el',
                                fn: function(){
                                    console.log('click el');
                                    var x = Ext.getCmp('validationcombo').setDisable(true);
                                    console.log(x);
                                }
                            }
                        }
                    }]            
            }]
            }]
    });
    Thanks!!

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    38
    Vote Rating
    0
    jovasnimaro is on a distinguished road

      0  

    Default


    Sorry, solved, i was forgetting the id property in each element.

    Thanks for reading.

    Regards!!!!

    Jovani

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