:: Forum >>

How to set style for grid by javascript

Help me,
I don't know how to set the following styles to a grid by javascript
.active-column-1 {width:20px; text-align: left;}
.active-column-1 .active-box-resize {display: none;}

Thursday, November 24, 2005
Are you using Version 2 or 1? You posted the question under version 2 but your code sample looks like version 1. You will find that version 2 offers much more direct control over the column styles then does #1. There are functions on the web that you can find to dynamically change CSS styles from withing JavaScript. I have used them before with the grid and they worked just fine. Doa Google search for "CSS JavaScript Change" and you should find a few functions to do what you want (assuming that you are using version 1).
Jim Hunter
Monday, November 28, 2005

This topic is archived.

Back to support forum

Forum search