Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by karnik on Oct 03, 2008 15:48
open dhtmlx forum
Grid not working in internet explorer 8.2

Hi I am using the grid , it works fine in IE6 and IE7 however in IE8 the grid is not populating the data.

I am attaching sample code here.

Please suggest.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>My Grid </TITLE>
<link rel="STYLESHEET" type="text/css" href="../codebase/dhtmlxgrid.css">
<script src="../codebase/dhtmlxcommon.js"></script>
<script src="../codebase/dhtmlxgrid.js"></script>        
<script src="../codebase/dhtmlxgridcell.js"></script>    
<script src="../codebase/ext/dhtmlxgrid_nxml.js"></script>
<script src="../codebase/ext/dhtmlxgrid_srnd.js"></script>
<script src="../codebase/ext/dhtmlxgrid_filter.js"></script>
<script src="../codebase/ext/dhtmlxgrid_pgn.js"></script>
<script src="../codebase/ext/dhtmlxgrid_group.js"></script>

<style>
.my_cell{
background-color:yellow
}
</style>
<script language="javascript">
var mygrid;
function doInitGrid(){
mygrid = new dhtmlXGridObject('mygrid_container');
mygrid.setImagePath("../codebase/imgs/");
mygrid.setHeader("Param Name, Param Value, Process Sequence, User , <div style='width:100%; text-align:right;'> Date Update</div>");
mygrid.setInitWidths("100,100,100,100,100");
mygrid.setColAlign("left,left,left,left,center");
mygrid.setColTypes("ed,txt,ed,ro,ro");
mygrid.setSkin("modern");
mygrid.init();
mygrid.parse("<?xml version=\"1.0\" encoding=\"UTF-8\"?><rows><row id='132_r'><cell>r</cell><cell>r</cell><cell>1</cell><cell>tuserrd</cell><cell>09-24-2008</cell></row><row id='132_last'><cell>last</cell><cell>last</cell><cell>8</cell><cell>auserkz</cell><cell>08-15-2008</cell></row></rows>")
}
</script>
</HEAD>
<BODY onload="doInitGrid();">
<form>
<div id="mygrid_container" style="width:602;height:300"></div>
</form>

</BODY>
</HTML>
Answer posted by Support on Oct 06, 2008 05:41
With latest codebase, your sample works correctly in IE8b2
Working sample sent by email. 
( the only known issue with IE8b2 is incorrect header rendering in IE8-Standard mode )