Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Mar 11, 2009 06:53
open dhtmlx forum
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

Answer posted by dhxSupport on Mar 12, 2009 04:19

As a quick solution you can use that:

grid.loadXML("myxmldoc.xml",function(){

grid.setSizes();

});