Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Shawn Sullivan on Jun 17, 2009 06:19
open dhtmlx forum
DHTML Grid

We are using the dhtml grid in both Mozilla and Internet Explorer. The scroll bars are appearing fine in Mozilla, but are not appearing to work in IE.

Here is our code to create the grid:

function CreateGrid(array, name) {
    document.write("<div id=\"" + name + "\" width=\"100%\" height=\"150px\" style=\"background-color:white; overflow:hidden\"></div>");

mygrid = new dhtmlXGridObject(name);
mygrid.setImagePath("<!--${DE_CGI_DIR}-->/codebase/imgs/");
mygrid.setHeader("Slip Date,Post Date,Ref. Number,Description,Amount");
mygrid.enableAutoWidth(true);
mygrid.enableAutoHeight(true,"100");
mygrid.setColTypes("ro,ro,ro,ro,ro");
mygrid.setColSorting("int,int,int,str,str");

mygrid.init();
mygrid.setSkin("light");
mygrid.parse(array,"jsarray");

}
Answer posted by dhxSupport on Jun 17, 2009 06:35
What version of dhtmlxGrid do you use? Similar problem was fixed in the latest dhtmlxGrid 2.1. version. Please contact sales@dhtmlx.com to update your files
Answer posted by Shawn Sullivan on Jun 17, 2009 06:52
The version I am using is:
dhtmlxGrid v.2.1 Standard edition build 90226
Answer posted by dhxSupport on Jun 17, 2009 08:46
Please note that you allways have to define grid's columns widths. You can do it with setInitWidths() method. Without using this method problems with scrollbar could appear