3.2.0

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;}


trungpt
November 24,
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
November 28,

This topic is archived.

See also:


Back to support forum