COL ALIGN problem on dhtmlxgrid

Hello,

I am a little bit lost with the dhtmlxgrid component. In fact, i downloaded the standard version and i put it on my ftp server. I declared my dhtmlxgrid with this code :

               var mygrid = new dhtmlXGridObject("listeVideos");
               mygrid.setImagePath("wp-content/themes/2012Modif/js/dhtmlx/dhtmlxGrid/codebase/imgs/");
               mygrid.setHeader("CATEGORIE,DESCRIPTION,DATE",null,["text-align:center;","text-align:center;","text-align:center;"]);
               mygrid.attachHeader("#select_filter, ,#cspan");
               mygrid.enableAutoWidth(true);
               mygrid.setInitWidthsP("20,70,10");
               mygrid.setColTypes("ro,ro,ro");
               mygrid.setColSorting("str,str,str");
               mygrid.setColAlign("center,center,center");
               mygrid.enableMultiline(true); 
               mygrid.init();
	       mygrid.setSkin("dhx_web");
	       mygrid.loadXML("wp-content/themes/2012Modif/xml/videosliste.php");

Normally, the text into the rows should be centered. However, it stays left aligned. Is the column alignement specific to the professional version ?

Thanks you for your help

Vinz

The code should work well for you.
Please, make sure that you have no other styles applied to html body or the parent container of the dhtmlxgrid container, which may chsange the align.
If issue still occurs - please, provide with a complete demo, where the issue can be reproduced locally.
Here you can find a tutorial:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Thank you for your help. I tried your method and it seems to be my navigator which does’nt work very well (iceweasel, the firefox linux version). So, I looked at the code and i arrived to resolve my problem. This morning i built a new skin thanks to the website build application. I got a “dhx_custom.css” file and i decided to update it, adding the css data : “text-align:center”. Thanks to that, everything works very well.
I wish you a good weekend and thank you for your help yet.

Vinz

PS: I am sorry but i don’t speak english very well ^^.