:: Forum >>
dynamically setting style of column?
hi i am a new user, so maybe this question is a little basic.
i have a grid whose number of columns are only known at run time. i want to set the text-align to right justified. is there a way to do that?
i know i can do
<style>
.active-column-3 {text-align: right; }
.active-column-4 {text-align: right; }
</style>
etc. but is there a way to set this dynamically?
thanks for any help!
tango mango
Saturday, February 12, 2005
bump
Steve N
Thursday, June 16, 2005
Try this, it should work:
obj.getColumnTemplate(3).setStyle("text-align", "right");
obj.getColumnTemplate(4).setStyle("text-align", "right");
Jim Hunter
Thursday, June 16, 2005
This topic is archived.
Back to support forum
Forum search