更新时间:2023-11-26 10:10:40
如果看看ExtJS API,特别是 ColumModel 有一个 setHidden
方法,它将隐藏/显示一个 GridPanel
中的列。
if take a look at the ExtJS API, particulary the ColumModel there is a setHidden
method, it would hide/show a column in a GridPanel
.
myGrid.getColumnModel().setHidden(0, true);
你还应该钩住 onchange
您的复选框,以便您可以显示或隐藏列
you should also hook the onchange
event of your check box so you can show or hide the column