I’ve got a problem when using the tree component.
It works fine in firefox and safari, but when I’m trying to view the page with IE8 (also tried compatibility mode) i get an error.
debugging tells me, that it happens, when calling the init method. When code execution reaches the method setColumnSizes, at the row ‘this.obj.style.width = summ + “px”;’ IE says that summ is invalid (contains NaN, according to the debugger).
here you got my code up to the position where the error happens:
var oWindowContainerMain = new dhtmlXWindows();
oWindowContainerMain.setImagePath("imgs/");
var oWindowMain = oWindowContainerMain.createWindow("windowMain", 0, 0, 300, 180);
oWindowMain.maximize();
oWindowMain.setIcon("16_logo.png");
oWindowMain.setText("XXXXX");
oWindowMain.button("close").hide();
oWindowMain.button("minmax1").hide();
oWindowMain.button("minmax2").hide();
oWindowMain.button("park").hide();
var oLayoutMain = oWindowMain.attachLayout("3W", "dhx_skyblue");
oLayoutMain.cells("a").setWidth(200);
oLayoutMain.cells("c").setWidth(300);
oLayoutMain.cells("c").hideHeader();
oLayoutMain.cells("a").setText("Hauptmenü");
oLayoutMain.cells("b").hideHeader();
oLayoutOverview = oLayoutMain.cells("c").attachLayout("3E", "dhx_skyblue");
oLayoutOverview.cells("a").setText("Aufgaben und Termine");
oGridTodo = oLayoutOverview.cells("a").attachGrid();
oGridTodo.setImagePath("dhtmlx/imgs/");
oGridTodo.setHeader("Datum,Beschreibung");
oGridTodo.setInitWidths("70, *");
oGridTodo.init();