Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sandaly KEITA on Sep 09, 2009 12:06
open dhtmlx forum
setInitWidths doesn't work with IE 8

I have a problem with the display of my grid with IE 8.

My version of DHTMLXGRID is 70223.

With the lastest version of Firefox, I have no problem. I can set the width of each columns or hide them.
But with IE 8, setInitWidths doesn't work.

My code is:

mygrid = new dhtmlXGridObject('gridRapport');
mygrid.entBox.onselectstart = function(){ return true; };
mygrid.setImagePath("imgs/");
mygrid.setStyle("background: url(../image/corner_th.jpg) no-repeat #7A95B4;color:#FFFFFF;padding: 4px 2px;font-size: 11px;font-weight: bold;border-left: 1px solid #5B7297;border-right: 1px solid #A5C4DA;","border: 0px;padding: 4px 2px;font-size: 10px;");
mygrid.setHeader("DATE HEURE,GROUPE,INFO,AUTEUR,VALIDE,DIFFUSE,,");
mygrid.setInitWidths("60,60,370,60,45,45,0,0");
mygrid.setColAlign("center,left,left,center,center,center,left,left");
mygrid.setColTypes("rotxt,rotxt,rotxt,rotxt,ch,ch,rotxt,rotxt");
mygrid.setColSorting("str,str,str,str,str,str,str,str");
    mygrid.setOnRowDblClickedHandler(OnDblClickedRow);
    mygrid.setOnRowSelectHandler(OnClickedRow,true);
    mygrid.setOnLoadingEnd(OnLoading);
    mygrid.setOnCheckHandler(OnCheckHandler);
    mygrid.setOnRightClick(OnRightClick);             
mygrid.enableAutoHeigth(true);
    mygrid.enableMultiline(true);
    mygrid.init();
mygrid.setColumnHidden(6,true);
mygrid.setColumnHidden(7,true);
mygrid.enableAlterCss("even","uneven");
mygrid.loadXML("xml/getListeRapport.php");

Thank you
Answer posted by Support on Sep 10, 2009 07:03
IE8 process size of tables in different way ( in standard mode, backward compatible in quirks mode )
dhtmlxGrid 2.1+ contains all necessary updates to render headers correctly in all versions of IE. 
If you can't update to latest version, you can try to change your code manually
        http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=9536&ssr=yes&s=ie8%20header