:: Forum >>

Alternate background color of each cell

It possible of alternate each row backgroung color?
i use:

obj.setId("grid1");

document.write(obj);
document.getElementById("grid1.data.item:1.item:2").style.background = "red";

but desaperete the scroll....
Susana
Tuesday, August 23, 2005
Look under www.Activewidgets.com - Menu -Reference
And then inside the right tree :
Grid Control / Grid Tutorial (How To...) / Styles / Rows / Alternate bacground col...
Tuesday, August 23, 2005
It possible to change cell's backgroung color?, i am using this property:

obj.setId("grid1");

document.write(obj);
document.getElementById("grid1.data.item:1.item:2").style.background = "red";
but when i used, the scroll disappear
Susana
Tuesday, August 23, 2005
Never use getElementById when working with AW objects. Use the AW built in methods as described in the tutorial mentioned above, a link to it is provided below:

http://www.activewidgets.com/grid.howto.style.rows/alternate-background-colors.html
Jim Hunter
Tuesday, August 23, 2005

This topic is archived.


Back to support forum

Forum search