Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    11
    Vote Rating
    0
    gnanbu is on a distinguished road

      0  

    Exclamation How To Get the Radio Button value

    How To Get the Radio Button value


    Hi,
    I use ExtJs Designer tool for gui Development. I tried to get radio box value but it showing error for me. can any one tell me how to get the value. Here i need Radio Group, but i don't know how to get radio group button in EXTJS designer tool. So i tried like that Here i attached my code for reference. Please Help me.

    Code:
    this.items = [
                {
                    xtype: 'fieldset',
                    title: '',
                    x: 10,
                    y: 140,
                    width: 780,
                    height: 200,
                    layout: 'absolute',
                    hideBorders: true,
                    id: 'selectCriteriaFieldSet',
                    items: [
                        {
                            xtype: 'label',
                            text: 'Translater',
                            x: 350,
                            y: 10,
                            id: 'searchId'
                        },
                        {
                            xtype: 'button',
                            text: 'Submit',
                            x: 350,
                            y: 120,
                            height: 22,
                            width: 70,
                            id: 'searchButton'
                        },
                        {
                            xtype: 'radio',
                            x: 350,
                            y: 40,
                            boxLabel: 'Upload',
                            name: 'SelectionRd',
                            inputValue: 'upload',
                            id: 'upload'
                        },
                        {
                            xtype: 'radio',
                            x: 350,
                            y: 70,
                            boxLabel: 'View/Edit/Download',
                            name: 'SelectionRd',
                            inputValue: 'view',
                            id: 'view'
                        }
                    ]
                }
            ];
    When click the button like below
    Code:
    this.findById('searchButton').on('click', function(button, event){
                            var radioValue = Ext.getCmp('SelectionRd').getValue();
                                          Ext.Msg.alert('ALERT',radioValue);
                            
            });
    Here i got error.The Error is :Unable to get value of the property 'getValue': object is null or undefined
    Last edited by aconran; 3 Nov 2011 at 3:09 PM. Reason: add code tags

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