3.2.0

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
February 12,
bump
Steve N
June 16,
Try this, it should work:

obj.getColumnTemplate(3).setStyle("text-align", "right");
obj.getColumnTemplate(4).setStyle("text-align", "right");
Jim Hunter
June 16,

This topic is archived.

See also:


Back to support forum