:: Forum >>

how to add border to a column using the api ?

how to add a column border using the api ?

At some point, I was able to do this - but it does not seem to work anymore ?

var celltmpl= this.getCellTemplate();
celltmpl.setStyle("border-right","1px solid #ccc");
celltmpl.setStyle("border-left","1px solid #ccc");
celltmpl.setStyle("padding-right","3px");
celltmpl.setStyle("padding-left","3px");

any clue?
Philippe Marzin
Wednesday, February 4, 2009
var celltmpl= this.getCellTemplate(column); // note 'column' mandatory
celltmpl.setStyle("border-right","1px solid #ccc");
Thursday, February 5, 2009
Thank you, it works for a given column. The solution is to iterate on the column I want - Thanks.
Philippe Marzin
Thursday, February 5, 2009

This topic is archived.


Back to support forum

Forum search