Domanda

in my GridPanel I have different Columns. Now I want dynamically set a few of them to hidden:true. I gave the columns ID's but I have no success on it. For example

Ext.getCmp("mainfield").setHidden(true);

Doesn't work. Any ides or help? THANK YOU!!!

È stato utile?

Soluzione

Try this:

grid.columns[columnIndex].hide();

or

grid.columns[columnIndex].setVisible(false);

To find column by id use down:

grid.down('gridcolumn#mainfield').hide();

Altri suggerimenti

The method you're looking for is hide:

Ext.getCmp("mainfield").hide();
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top