I am getting an error on the store if I use the extension without renderTo. I get the error when I close a form. Line 662
I changed this section to the following:
Code:
addCheckboxes: function() {
// Add new checkboxes from store
if(this.store){ Ext.each(this.store.data.items, function(rec) {
var checkbox = new Ext.form.Checkbox({name: rec.data.id + '-checkbox', boxLabel: rec.data[this.displayField], inputValue: rec.data[this.valueField], checked: (rec.checked ? rec.checked : false)});
var col = this.cbgroup.panel.items.get(0);
this.cbgroup.items.add(checkbox);
col.add(checkbox);
this.cbgroup.panel.doLayout();
}, this);
}
},
It fixes the problem, not sure if is the best thing to do though.
Marty