Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Shawn Sullivan on Jun 17, 2009 07:45
open dhtmlx forum
colAlign in DHTML Grid

We are using: ghtmlxGrid v.2.1 Standard edition build 90226
We are having an issue with the setColAlign. When I set the alignment to right it doesn't do anything. Everything is left aligned.
Here is the code:

mygrid = new dhtmlXGridObject(name);
mygrid.setImagePath("<!--${DE_CGI_DIR}-->/codebase/imgs/");
mygrid.setHeader("Slip Date,Post Date,Ref. Number,Description,Amount");
mygrid.setInitWidths("85,85,150,*,90")
mygrid.enableAutoWidth(false);
mygrid.enableAutoHeight(false);
mygrid.setColAlign("left,left,left,left,right");
mygrid.setColTypes("ro,ro,ro,ro,link");
mygrid.setColSorting("str,str,int,str,int");

mygrid.init();
mygrid.setSkin("light");
mygrid.parse(array,"jsarray");
Answer posted by dhxSupport on Jun 17, 2009 08:20
Please check example at the attachment. As you can se mentioned issue doesn't appear
Attachments (1)