Hi,
my dhtmlgrid give an error when I try to use from IE6. Error is about “align” property. From FF there is not problem, I look in javascript�s console and all I see was a warning about ‘filter’ property in the dhtmlxgrid.css. The OnLoad function seems like:
function doOnLoad(){
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath("…/ajax/codebase/imgs/");
//set columns properties
mygrid.setHeader(“P,ID_contrato,Dominio,Producto,Tipo Hw,Modelo,Numero de serie,ubicaci�n,Ip gestion,Observaciones” );
mygrid.setColTypes(“link,ro,ro,ro,coro,ed,ed,ed,ed,ed”);
mygrid.setInitWidths(“40,75,200,125,75,200,125,75,100,250”);
mygrid.setColAlign(“center,left,left,left,left,left,left,left,rigth,left”);
mygrid.setColSorting(“str,int,str,str,str,str,str,str,str,str”);
mygrid.enableBuffering(500);
mygrid.init();
//set grid event handlers
mygrid.setOnEditCellHandler(doOnCellEdit);
//populte combobox with values
populateCombo();
//load grid content
mygrid.loadXML("…/ajax/codebase/exhw.xml");
//set loaders
rowUpdater = new dtmlXMLLoaderObject(doUpdateRow,window);
rowEraser = new dtmlXMLLoaderObject(doDeleteRow,window);
}
For test I used this XML:
<?xml version="1.0" encoding="iso-8859-1"?>
220274cnic.dedi.acens.netDE-UNXBdedicadoIBM-305550242TP:2 F:3 R:6217.116.2.228-
Thx.
>>was a warning about ‘filter’ property in the dhtmlxgrid.css
this is normal, FF shows such data for any css style which it not support.
Problem caused by type in setColAlign command
You have
mygrid.setColAlign(“center,left,left,left,left,left,left,left,rigth,left”);
while correct is
mygrid.setColAlign(“center,left,left,left,left,left,left,left,right,left”);
IE, somehow, is strict to attributes, which used directly against HTML