声明:本博文用于学习总结及工作心得
在grid中添加afterrender事件:
afterrender: function (grid) {
showColumns('columnstatusload', 'progressColumns', grid);
var elments = Ext.select(".x-column-header-text");//.x-grid3-hd
elments.each(function(el) {
console.info("i:"+el.dom.id);
var id = el.dom.id;
var column = document.getElementById(id);
if(column){
console.info(1);
column.style.whiteSpace = "normal";
column.style.lineHeight = "15px"
}
}, this) ;
}