Categories | Question details Back To List | ||
grid problem why when i put my table or grid div to 98% and put some numbers AND * for column width ( mygrid.setInitWidths() ) when grid finishes loading it shifts a little and horizontal AND vertical scroll bars appear. when it is still 98% BUT mygrid.setInitWidths("") has only * it works like a charm. when table or grid div is set to 90% it works fine no matter what. any solution? P.S. i want ti to be 98 procent and when it fineshes loading its size to be correctly handled. P.S. mygrid.setSizes() does not fixes the problem. Answer posted by dhxSupport on Oct 06, 2009 02:09 To fix this issue add mygrid.setSizes() after grid was loaded: mygrid.loadXML("grid.xml",function(){ mygrid.setSizes(); }); And add mygrid.setSizes() on window's resize event: dhtmlxEvent(window, "resize", function(){ mygrid.setSizes(); }); |