PDA

View Full Version : Checkboxgroup hidden checkboxes



brk11
3 Mar 2010, 9:34 AM
I have a checkboxgroup with possible hidden checkboxes. I have defined 3 columns that are automatically rendered depends on the checkboxes that are defined. The problem is when I render hidden checkboxes I see their empty spaces in the group, instead ignore them on render.

Example code:



var group= new Ext.form.CheckboxGroup({
columns: 3,
vertical: true,
autoShow: true,
fieldLabel: 'label',
defaults: {
hidden: true
},
items: [
{boxLabel: 'A', name: 'a'},
{boxLabel: 'B', name: 'b'},
{boxLabel: 'C', name: 'c', id: 'c-chk'}
]
});

Ext.getCmp('c-chk').setVisible(true);