ExtJs dolayout on panel
===

I have a grid inside the panel. Initially i will render the grid to the panel when the application is loaded and on specific user operation (say click on grid:2) i will hide the grid inside panel using hide(). When the grid is hided i will display a message in panel using panel.update(html). Now again on specific user operation (say click on grid:3) i need to show the grid inside panel. i tried with grid.show(), grid.setvisible() and panel.doLayout() but none work out. Below is the sample code,

        if (condition1){
          panelGrid.setVisible(false);
          panel.update("htmltext");
        } else {
          panel.doLayout();
          panelGrid.setVisible(true);
        }

This works fine in firefox. But in IE8 it does not work and displays a error message "Unspecified error in ext-base.js"

Any one has any ideas on this?