Header not showing in IE10

The header is not showing up in IE10. Here is my code.

<link rel="stylesheet" type="text/css" href="/xgrid/dhtmlxgrid.css" />
<script type="text/javascript" language="javascript" src="/xgrid/dhtmlxcommon.js"></script>
<script type="text/javascript" language="javascript" src="/xgrid/dhtmlxgrid.js"></script>
<script type="text/javascript" language="javascript" src="/xgrid/dhtmlxgridcell.js"></script>
<script type="text/javascript" language="javascript" src="/xgrid/dhtmlxgrid_nxml.js"></script>
<script type="text/javascript" language="javascript">
var mygrid;
function doInitGrid(){
mygrid = new dhtmlXGridObject('mygrid_sensors');
mygrid.setImagePath("xgrid/imgs/");
mygrid.setHeader("Status,Company,Store #,Store Address,Tank ID Location,System Type,Current Percent,Filtration Data");
mygrid.setInitWidths("55,100,70,170,95,70,65,100");
mygrid.setColAlign("center,center,center,center,center,center,center,center");
mygrid.setColSorting("str,str,str,str,str,str,int,str");
mygrid.enableCollSpan(true);
mygrid.setSkin("light");
mygrid.enableRowsHover(true,'grid_hover')
mygrid.init();
mygrid.loadXML("xgrid_files/sensors-all_f.php");
}

</script>

It works with IE9, firefox, Chrome

Any help would be great.
lordkirin
 
Posts: 4
Joined: Tue Apr 27, 2010 8:01 pm

Which version of dhtmlxgrid you are using ?
I have checked the same code with dhtmlxGrid 3.6 and it works in IE10 correctly.
Stanislav
 
Posts: 9102
Joined: Wed Dec 23, 2009 3:04 pm

I am using 3.5. I tried 3.6 but it causes the table not to showup so I when back to 3.5
lordkirin
 
Posts: 4
Joined: Tue Apr 27, 2010 8:01 pm

If you are using the separate js files, try to take only dhtmlxcommon.js from version 3.6 ( it will work with other 3.5 files, and in the same time it must be enough to support ie10 )
Stanislav
 
Posts: 9102
Joined: Wed Dec 23, 2009 3:04 pm

I tried move just that file and it still did work. What it seams to be is when your in IE10 and document mode is set to Quirks it causes the header to disappear. I beleive the quirks is set be default. Can you think of anything else?
lordkirin
 
Posts: 4
Joined: Tue Apr 27, 2010 8:01 pm

Unfortunately I still can't reconstruct the issue locally.

If issue still occurs - please provide any kind of sample or a demo link, where problem can be checked.
Stanislav
 
Posts: 9102
Joined: Wed Dec 23, 2009 3:04 pm


Return to dhtmlxGrid/TreeGrid

Who is online

Users browsing this forum: No registered users and 1 guest