Some more info,
I have dynamic grid in the panel like,
If I am not sending parameter to PHP, I shouldn't get column header. Currently I have it like,
I want to do something in that alert portion to clear column header, since I don't define store for this grid, I don't know how to do.
if (arrayValues == '')
alert("Select a column name");
var dynamicGrid = Ext.ComponentQuery.query('dynamicGrid');