Some more info,
I have dynamic grid in the panel like,
Code:
{
xtype: 'dynamicGrid',
url: 'php/update.php',
viewConfig: {
autoRender: true
}
}
If I am not sending parameter to PHP, I shouldn't get column header. Currently I have it like,
Code:
if (arrayValues == '')
{
alert("Select a column name");
}
else
{
var dynamicGrid = Ext.ComponentQuery.query('dynamicGrid')[0];
dynamicGrid.getStore().load({
params:{
param1: [arrayValues]
}
});
}
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.