Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by German Sandoval on Aug 12, 2009 08:28
open dhtmlx forum
dhtmlxGrid internet explorer 8

Hi guys

I have a problem with dhtmlxgrid and internet explorer 8 the grid works fine in firefox and opera but when i open it in internet explorer i receive the error invalid argument:

Many thanks.

This is the code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>dhtmlxGrid. Big Grid</title>
    <link rel="STYLESHEET" type="text/css" href="http://localhost/grid/step-by-step/codebase/dhtmlxgrid.css">
    <script src="http://localhost/grid/step-by-step/codebase/dhtmlxcommon.js"></script>
    <script src="http://localhost/grid/step-by-step/codebase/dhtmlxgrid.js"></script>
    <script src="http://localhost/grid/step-by-step/codebase/dhtmlxgridcell.js"></script>
    <script src="http://localhost/grid/step-by-step/codebase/ext/dhtmlxgrid_srnd.js"></script>
    <script>
        var gridQString = "";
     function applyFilter(){
         mygrid.clearAll();
            gridQString = "getGridRecords.php?name_mask="+document.getElementById("nm_mask").value
         mygrid.loadXML(gridQString);
        }
        function sortGridOnServer(ind,gridObj,direct){
            mygrid.clearAll();
            mygrid.loadXML(gridQString+(gridQString.indexOf("?")>=0?"&":"?")+"orderby="+ind+"&direct="+direct);
            mygrid.setSortImgState(true,ind,direct);
            return false;
        }
    </script>
</head>

<body>
<H1 align="center">Consultas</H1>

<p><br>
</p>
<p align="center"><br>
<input type="Text" id="nm_mask">
<input type="Button" value="Buscar" onClick="applyFilter()">
</p>
<div id="products_grid" style="width:1165px; height:542px; position: absolute; left: 61px; top: 211px;"></div>
<script>
var mygrid = new dhtmlXGridObject('products_grid');
mygrid.setImagePath("codebase/imgs/");
mygrid.setHeader("Cedula, Nombres, Apellidos, Departamento, Sistema Operativo, SO-Legal, Sistema Ofimatico, Office-Legal, Posee Acrobat Reader, Posee Creador PDF, Posee Acrobat Professional, otros, Legal Acrobat, Posee solid works, Posee Autocad, Otros, Software dibujo-Legal, Teclado, Mouse, Serial Teclado, Monitor, Serial Monitor, Service Tag, Serial Portatil, Disco Duro, Memoria, Antivirus");
mygrid.setInitWidths("80,120,120,129,80,80,120,80,80,80,80,80,80,80,80,80,140,80,80,80,80,80,80,80,80,80");
mygrid.setColAlign("left,left,left,left");
        mygrid.setSkin("light");
        mygrid.setColSorting("server,server,server");
        mygrid.init();
        mygrid.enableSmartRendering(true);
        gridQString = "getGridRecords.php";
        mygrid.loadXML(gridQString);
        mygrid.attachEvent("onBeforeSorting",sortGridOnServer)

</script>

<p> </p>

</body>
</html>
Answer posted by Alex (support) on Aug 12, 2009 09:07

Hello, 

please check that number of columns in setHeader method is the sample as number of columns in setInitWidths. It seems that they are different

Answer posted by German Sandoval on Aug 12, 2009 09:11

Alex i already fix it, your products are great.

keep with the good work

Thanks :D