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");
September 28,

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

This topic is archived.

See also:

Back to support forum