Code:
{
id : 'q2Pulses',
instructions : 'Can select MULTIPLE answers',
title : '<font size=3>Question 2(a)(b)(c). : From these crop groups, which crop did you mainly cultivate in 2011? For selected crops, please tell me in how many acres were the crops grown? Which crops were grown by your farm in 2010</font>',
items : [
{
layout : 'vbox',
defaults : {width : '100%', layout : 'hbox', defaults : {height : '100%'}},
items : [
{
items : [ //For a sort of header on the each column
{xtype : 'spacer', width: '25%', style : 'background-color:#C0C0C0'},
{xtype : 'field', labelWidth : '100%', label: 'Crops in 2011',width: '25%'},
{xtype : 'field', labelWidth : '100%', label: 'Acreage (in Acres)', width : '25%'},
{xtype : 'field', labelWidth : '100%', label: 'Crops in 2010', width: '25%'},
]
},
{
items : [ // columns to fill
{xtype : 'checkboxfield', name : 'q2a5',labelWidth : '60%', label: 'Bengal Gram', value : '5', width: '50%'},
{xtype : 'textfield', name : 'q2b5', width : '25%'}, //error in the CSS Here
{xtype : 'checkboxfield', name : 'q2c5', value : '1', width: '25%'},
]
},
{
items : [
{xtype : 'checkboxfield', name : 'q2a6',labelWidth : '50%', height: '100%', label: 'Black & Green Gram', value : '6', width: '50%'},
{xtype : 'textfield', name : 'q2b6', width : '25%'}, //error in the CSS Here
{xtype : 'checkboxfield', name : 'q2c6', value : '2', width: '25%'},
]
},
{
items : [
{xtype : 'checkboxfield', name : 'q2a7',labelWidth : '50%', label: 'Red Gram', value : '7', width: '50%'},
{xtype : 'textfield', name : 'q2b7', width : '25%'}, //error in the CSS Here
{xtype : 'checkboxfield', name : 'q2c7', value : '3', width: '25%'},
]
}]
}
]
}, //End of Q2abc