How to check whether check box is selected or not in extjs?

user007 picture user007 · Jan 10, 2012 · Viewed 8.1k times · Source

I created one panel. I added one checkbox in that panel. I need to check whether that checkbox selected or not from outside function. Please any one help me....

this.currentManagerPanel = new Ext.Panel({
    border: false,
    width: 550,
    layout: 'fit',
    items: [{
        xtype: 'checkbox',
        name: 'isNewEmployee',
        height: 20,
        boxLabel: 'Is New Employee',
        inputValue: ''
    }]
});

Answer

hienvd picture hienvd · Aug 14, 2013
using Ext.getCmp("isNewEmployee").checked;