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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar