PDA

View Full Version : How to set column width in the datamodel for Ext.ux.TouchGridPanel?



subashk
14 Jul 2011, 4:54 AM
i have a TouchGridPanel ext List, which as column model

var colHighGradeTop = [{
header : "COL1",
mapping : "1",
style : "text-align: left;width:200;",
flex : 2
},{
header : "COL2",
mapping : "2",
style : "text-align: right; ",
renderer : function (val) {
return formatVol(val);
}
},{
header : "COL3",
mapping : "3",
style : "text-align: right;",
renderer : function (val) {
return formatVol(val);
}
}
]

having issue when the value of first column is too large it pushes the alignment, so i want to set a specific width for the COL1

Any help?