2015-08-16 48 views

回答

1

引用的示例包含定義爲

{ name: "act", template: "actions", width: 66 } 

act列的width柱是固定的,它是66px。模板actions將被定義爲如下(見的代碼the line):

actions: function() { 
    return { 
     formatter: "actions", 
     width: (this.p != null && this.p.fontAwesomeIcons ? 33 : 37) + (jgrid.cellWidth() ? 5 : 0), 
     align: "center", 
     label: "", 
     autoResizable: false, 
     frozen: true, 
     fixed: true, 
     hidedlg: true, 
     resizable: false, 
     sortable: false, 
     search: false, 
     editable: false, 
     viewable: false 
    }; 
} 

你可以看到它包含fixed: true, resizable: false性能。如果要更改屬性,只需在列定義中重新定義模板的值即可:

{ name: "act", template: "actions", width: 66, fixed: false, resizable: true }