版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/78252324
onClick: function(button) {
var grid = button.up('grid');
var column = grid.down('gridcolumn[text=column1]');
if (column.locked) {
grid.unlock(column);
} else {
grid.lock(column);
}
}