3.2.0

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
September 28,
Hello,

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

This topic is archived.

See also:


Back to support forum