RadioButton inside grid column not showing selected values in Ext js 4.0

My code is here don't know what I'm doing wrong. my radio button is not group radio button its single button in separate column and if i select once i couldn't deselect it again

dataIndex: 'Regex',
flex     : 1,
text     : 'Regex',
hideable : false,
sortable :false,
editor: { 
    xtype     : 'radiofield',
    name      : 'Regex',
    //boxLabel: 'Checked',
    inputValue: 'Checked'
},
listeners: {
    //display the selected radiofield value
    change: function(obj, value){ 
        alert(this.getValue().Regex);
    }
}

Answers


Set the AfterRender listner of the radio button. For example,

var setIsChecked = function(field,store) {              
            if(field.ownerCt.record.data.isChecked)
            {                                     
                field.setValue(true);
            }
        }

and

<Listeners>
   <AfterRender Handler="setIsChecked(this,#{strQueries})"></AfterRender>
</Listeners>

Need Your Help

POST data to database with Retrofit

java php retrofit

I am stuck into a problem with posting data to a server with Retrofit.

Intel AVX: 256-bits version of dot product for double precision floating point variables

c++ performance simd avx

The Intel Advanced Vector Extensions (AVX) offers no dot product in the 256-bit version (YMM register) for double precision floating point variables. The "Why?" question have been very briefly trea...