Style questions

build 91111

How do I set the color of the grid area below the header row when there are no rows displayed? (Currently it’s just a massive white area.)

This does not seem to be the right behavior:

myGrid.setColAlign(“left,center,right,right,right,right”);

myGrid.setHeader(“A,B,C,D,E,F”, null, [“background-color:#C5DBC8;”,“background-color:#C5DBC8;”,“background-color:#C5DBC8;”,“background-color:#C5DBC8;”,“background-color:#C5DBC8;”,“background-color:#C5DBC8;”]);

myGrid.init();

In the above case, calling setHeader after setColAlign breaks the column alignment. If I reverse the sequence and call setColAlign after setHeader, then the column alignment is as expected.

Karl

How do I set the color of the grid area below the header row when there are no rows displayed?

You can change background color of this area with following css:

div.gridbox .objbox{}

In the above case, calling setHeader after setColAlign breaks the column alignment
You should call setColAlign method after setHeader method

Thank you. Works great.