Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by papesz on Sep 07, 2009 15:03
open dhtmlx forum
Grid error in IE

I searched the knowledge base for answers, found some suggestions, but nothing seemed to help. I am using dhtmlx v2.0, I attached a grid to a layout cell. Everything works fine in all browsers, except Internet Explorer. IE throws a "Cannot get align property... invalid argument" error in dhtmlxgrid.css line 609, pos. 440. I checked the code, nothing seemed wrong, especially since Firefox, Safari, Chrome, Opera all seem to have no problem.
This is the layout init:

var dhxLayout = new dhtmlXLayoutObject(document.body, "3U");
    dhxLayout.cells("a").setText("map");
    dhxLayout.cells("a").attachURL("map.html");
    dhxLayout.cells("b").setText("LabelB");
    dhxLayout.cells("b").setWidth(460);
    dhxLayout.cells("c").setText("Chart");
    dhxLayout.cells("c").setHeight(290);
    dhxLayout.cells("c").collapse();
    dhxLayout.setAutoSize("a;c", "a;b");
    
var mygrid = dhxLayout.cells("b").attachGrid();
    mygrid.setImagePath("_libs/dhtmlx/imgs/");
    mygrid.setHeader("~,Állomás neve,Vízállás,Vízhozam,Vízhő");
    mygrid.setInitWidths("32,230,60,70,50");
    mygrid.setColAlign("na,left,right,right,right")
    mygrid.setSkin("light");
    mygrid.setColSorting("na,na,na,na,na");
    mygrid.enableTooltips("false,false,false,false,false");
    mygrid.setEditable(false);
    mygrid.init();
    mygrid.loadXML("list.php");
Column counts match, no syntax errors, I don't know where to go.
I would appreciate any help.
Thanks
Answer posted by dhxSupport on Sep 09, 2009 01:09
What version of dhtmlxGrid do you use? Please check if layout container has correct width and height parameters. If issue still occurs please provide us example where we can reproduce it.