Uncaught TypeError: Property '2' of object function (e, args) { gen.call(dom, e, o, fn, scope, ename, dom, arguments.callee, args); },function (e, args) {
Code:
var listPanel = new Ext.Panel({
id : 'listPanel',
renderTo:'modaldiv',
floating : true,
centered : false,
height : 300,
width : 400,
layout: 'fit',
modal:true,
items: [{
xtype: 'list',
id : 'List1',
emptyText: 'No Records were found ',
showAnimation: {
type: 'pop',
duration: 250
store: naStore,
itemTpl: tpl,
grouped: true,
onItemDisclosure: function(record, btn, index) {
var thisfield = Ext.getCmp(field);
thisfield.setValue(record.data.NACUST);
}
}]
});
listPanel.showBy(field);
listPanel.show();