setHeader Parameters

in the documentation it says


set header label and default params for new headers

styles - array of header styles

in my code:

var headerStyles=new Array(“gridheader1,gridheader2”);


in my css file:

.gridheader1 {background-color: red;}

but it doesn’t work. (header bg is not red.)

any suggestions?

Command expect actual css code, not the class name

var headerStyles=[“background-color: red;”,“background-color: green;”];


is there any method to set class name for headers?

There is no  such API method, but after grid.init , when HTML structure already created you can set id directly through DOM


not cell[i] but cells[i] worked, thanks.