Possible Duplicate:
how to show/ hide column in a grid panel
In extjs gridpanel, there is an attribute called : visibleColumns. What I want is this:
someGrid = new Gridpanel({
store: this.someStore,
flex: 1,
if (someCond=true)
visibleColumns:[
col1,col2
]
else
visibleColumns:[
col3,col4
]
});
How to achieve the if (someCond=true) ?