Justification always left

Doesn’t matter what I put in .setColAlign() all columns are always left justified.

[code]TrapGrid = new dhtmlXGridObject(‘wTrapGrid’);

TrapGrid.setImagePath("/include/dhtmlx_pro/imgs/");

var vHeaders = “”;
vHeaders += “,”
vHeaders += “Projekt,”
vHeaders += “Delproj,”
vHeaders += “Aktivitet,”
vHeaders += “Benämning,”
vHeaders += “Mån,”
vHeaders += “Tis,”
vHeaders += “Ons,”
vHeaders += “Tors,”
vHeaders += “Fre,”
vHeaders += “Lör,”
vHeaders += “Sön,”
vHeaders += “Sum,”
vHeaders += “Enh,”
vHeaders += “ID,”
vHeaders += “JUST”

TrapGrid.setHeader(vHeaders);
TrapGrid.setColAlign(“center,left,left,left,left,right,right,right,right,right,right,right,right,left,right,center”);
TrapGrid.setColumnIds(“check,proj,dproj,akt,ben,day1,day2,day3,day4,day5,day6,day7,sum,enh,id,just”);
TrapGrid.setInitWidths(“20,90,60,90,*,36,36,36,36,36,36,36,36,50,30,30”);
TrapGrid.setColumnsVisibility(“false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false”);
//TrapGrid.setColTypes(“ch,ed,ro,ed,ed,edn,edn,edn,edn,edn,edn,edn,ron,ro,ron,ron”);
TrapGrid.setColTypes(“ch,ed,ro,ed,ed,ed,ed,ed,ed,ed,ed,ed,ron,ro,ron,ron”);
TrapGrid.setColumnColor(“white,white,#EFEFEF,white,white,white,white,white,white,white,white,white,#EFEFEF,#EFEFEF,#EFEFEF,#EFEFEF”);
TrapGrid.attachFooter("#stat_count,tim,#cspan");
TrapGrid.enableEditTabOnly(true);

// Single click edit, no double click edit, F2 edit
TrapGrid.enableEditEvents(true, false, true);

TrapGrid.attachEvent(“onEditCell”, function(vStage, rId, cInd, nValue, oValue) {
if (vStage === 2) {
vReturn = trapEditCell(vForetagID, rId, cInd, nValue, oValue);
} else {
vReturn = true;
}

return vReturn;
});

TrapGrid.init();
// Skins v3.5: “sbdark”, “gray”, “mt”, “xp”, “clear”, “modern”, “light”, “dhx_skyblue”
TrapGrid.setSkin(“xp”);
TrapGrid.submitSerialization(false);

TrapGrid.i18n.decimal_separator = “,”;
TrapGrid.i18n.group_separator = " ";[/code]

Btw, what commands should be used before and after TrapGrid.init()?

Unfortunately the issue cannot be reconstructed locally.
Please, make sure that you don’t apply any style that changes the align to the parent conrainers of the grid.