PDA

View Full Version : Checkbox in bbar under an EditorGridPanel



amegahed
15 Jul 2009, 8:12 AM
The fieldLabel of the checkbox does not show?


var gridMNew = new Ext.grid.EditorGridPanel({
frame : false,
region : 'center',
store : dsMoviesList,
cm : cmMNew,
loadMask : true,
sm : smMNew,
split : true,
clicksToEdit: 1,
stripeRows : true,
bbar : [{
xtype : 'checkbox',
name : 'autoscan',
fieldLabel : 'Automated Scan'
},'->',{
text : 'Scan',
width : 100
}
]
});



the checkbox itself is there, but no label.

amegahed
15 Jul 2009, 8:39 AM
I just added a label before it:


bbar : [ {
xtype : 'label',
text : 'Automated Scan ',
},
{
xtype : 'checkbox',
name : 'autoscan',
fieldLabel : 'Automated Scan'
},'->',{
text : 'Scan',
width : 100
}
]


now it shows but its stuck right next to the checkbox... its good for now