:: Forum >>

Altering Column Styles

I am trying to get the column index and then align everything in that column to the left. I am doing it based on a double-click of any cell in the column. I have tried this below, but it did not work. The variable CIndex is giving the right index for the column, but obj.getColumnTemplate(CIndex).setStyle("text-align", "left"); does not seem to work.

Any suggestions??

Column Alignment:

function AlignLeft() {
var x=event.screenX;
var CIndex = getHeaderIndexAt(x);
obj.getColumnTemplate(CIndex).setStyle("text-align", "left");
}
Anthony
Wednesday, September 28, 2005
Hello,

your example should work, try obj.refresh() after the setStyle
Gernot
Thursday, September 29, 2005
Obj.refresh() did work. thanks.
Anthony
Thursday, September 29, 2005

This topic is archived.


Back to support forum

Forum search