Facing problem with enableSmartRendering in grid

Hi,
I am using grid with accordion and whenever I used grid with accordion I face lot of problems, like mygrid.enableSmartRendering(true,50); is not working in grid because I have attached my grid to the accordion, but when I removed the accordion code then its working fine. Why I am facing that kind of problem, is there any problem with my code or some thing else, Please help me out.

Below is code I have written.

//DHTMLX ACCORDIAN
dhxAccord = new dhtmlXAccordion(“mainAccordion”);
dhxAccord.addItem(“a”,“Status Flags Summary”);
dhxAccord.cells(“a”).setHeight(300);

//Initializing Grid
fsGrid = new dhtmlXGridObject(“gridboxsflag”);
fsGrid.setImagePath("…/dcdial/common/dhtmlx/full/imgs/");
fsGrid.setColSorting(“str,str,str”);
fsGrid.setColTypes(“ro,ro,ro”);
fsGrid.setSkin(“light”);
fsGrid.init();
fsGrid.clearAll(true);
fsGrid.enableSmartRendering(true, 500);
fsGrid.loadXMLString(responseGrid); //Load XML to Grid

dhxAccord.cells(“a”).attachObject(“gridboxsflag”);

Please, try to attach the dhtmlxgrid object after the container is attached to the accordeon.
dhxAccord.cells(“a”).setHeight(300);
dhxAccord.cells(“a”).attachObject(“gridboxsflag”);

//Initializing Grid
fsGrid = new dhtmlXGridObject(“gridboxsflag”);