attachfooter overlaying scroll bar

Hi



i am using the following code to create a grid with a row count footer:



grid = gridLayout.cells(“a”).attachGrid();

grid.preventIECaching(true);

grid.enableEditTabOnly();

grid.enableUndoRedo();

grid.enableMultiselect(false);

grid.setSkin(“light”);

grid.setDragText(“Item”,“Items”);

grid.imgURL = “…/ReBaseMG/ThirdPartySoftware/DHTMLX/dhtmlxGrid/codebase/imgs/icons_books/”;

grid.enableSmartRendering(true);

grid.attachFooter(“Total Rows: {#stat_tree_count},#cspan”);

grid.loadXML(“myxmldoc.xml”);



however, when it loads the footer loads on top of the horizontal scroll bar. if i close the layout cell and reopen it then it gets put into position fine.



do you have any idea why this may happen and possible ways to resolve it?



thanks




As a quick solution you can use that:


grid.loadXML(“myxmldoc.xml”,function(){


grid.setSizes();


});