Title headers do not appear complete

Hi,

the titles in my grid don’t appeas complete, some of them are too longer and I wish to see them in two rows.

is this posibble?



my code:



var mygrid = new dhtmlXGridObject(‘gridbox’);



mygrid.setImagePath(‘dhtmlxGrid_imgs\’);



vTitulos = “”

vTitulos += “,Cupo Actual”

vTitulos += “,Disponible para compras”

vTitulos += “,Disponible para avances”

vTitulos += “,Autorizado a Transferir”

vTitulos += “,”

vTitulos += “,Nuevo Cupo”

vTitulos += “,Disponible Para Compras”

vTitulos += “,Disponible Para Avances”

mygrid.setHeader(“Cuenta, Estado Actual de la Cuenta,#cspan,#cspan,Cupo M�ximo,Monto a Transferir,Simulaci�n Cuenta Rebajada,#cspan,#cspan”)

mygrid.attachHeader(vTitulos);

mygrid.setInitWidths(“110,70,130,75,60,75,70,75,75”);

mygrid.setColAlign(“left,right,right,right,right,right,right,right,right”);

mygrid.setColTypes(“ro,ro,ro,ro,ro,ed,ro,ro,ro”);

mygrid.setColSorting(“str,str,str,str,str,int,str,str,str”);

mygrid.setDelimiter(“�”);

mygrid.setOnRowSelectHandler(doOnRowSelected);

mygrid.setOnEnterPressedHandler(doOnEnter);

mygrid.enableLightMouseNavigation(true); //para solo un click

mygrid.setOnEditCellHandler(doOnCellEdit);

mygrid.init();

Grid may wrap long headers on next line automatically ( this feature not works for xp and mt skins )
The same code as in your case works correctly in our samples ( attached )


1225909787.zip (93 KB)

than you,
 it is problem witrh the style sheet.
if I use you sample with my stylesheet it dosn´t work.

Most probably you have some rule with
white-space:nowrap;
assigned to TD or DIV elements, which prevent line breaking.

hi
solved!!, the problem was with this line in the style sheet.

div.gridbox table.hdr td {

  /* height: 17px; */ <-- removed
    }