1
我需要隱藏列的列索引extjs grid
面板得到ExtJS的網格面板隱藏列的列索引
columnhide: function() {
var cell = this.getEl().query('.x-grid-cell-inner');
for(var i = 0; i < cell.length; i++) {
if (i%2 != 0){ // Instead of this i, want to change the style to none for the hide column, so i need to get the column index of hide column in grid panel
cell[i].style.display= "none";
}
}
http://jsfiddle.net/vd7f8/11 ---這裏當我點擊col1/col2來隱藏,columnhide函數裏面我想獲得col1/col2的列索引在複選框取消選擇 – user2353513
http://jsfiddle.net/vd7f8/12/ - 我修改了您的示例以顯示您剛剛隱藏的列的索引的警報。 –
非常感謝你...我工作過...你救了我的一天:-) – user2353513