PDA

View Full Version : How to render check boxes in to 3 columns



Trinad
20 Feb 2009, 6:38 AM
Hi,

Any idae how to render check boxes in to 3 column layout.

Thanks,
Trinad.

soze
20 Feb 2009, 6:48 AM
Put your checkboxes in a checkbox group and set the columns property to 3.



{xtype:'checkboxgroup',columns: 3,width:200,allowBlank: false,
name: 'cBGroup',
items: [
{boxLabel: 'APAC', name:'regionAPAC'},
{boxLabel: 'EMEA', name:'regionEMEA'},
{boxLabel: 'UK', name:'regionUK'},
{boxLabel: 'US', name:'regionUS'}// this should appear on a new line.
]}