View Full Version : how to hide grid column based on condition

kamalakarreddy vancha
20 Oct 2014, 2:09 AM
I am using Extjs 4.2.3.
My requirement is
how to hide the grid column based on condition.
I mean
If var x = 'value';
then i want to hide the particular column in the grid.
If value x = '';
then i want to show it.
Help me i this......

Thanks In Advance
Kamalakar Reddy V

20 Oct 2014, 6:04 AM
You can use the following:

var index = grid.down('[dataIndex=fieldname]');