可以在model的onload事件中通过window节点的xid获取到id,然后通过jquery查找去设置
Model.prototype.modelLoad = function(event){
var id = this.getIDByXID("window");
$("#"+id+" .x-grid-hbox").find("th:eq(7)").css("text-align","center");
};
eq:(7)就是设置第几列,7是第8列
可以在model的onload事件中通过window节点的xid获取到id,然后通过jquery查找去设置
Model.prototype.modelLoad = function(event){
var id = this.getIDByXID("window");
$("#"+id+" .x-grid-hbox").find("th:eq(7)").css("text-align","center");
};
eq:(7)就是设置第几列,7是第8列
评一波