:: Forum >>

set the color of specified row headers from code (not style!!)

How can i set the row header colors programaticaly?
I tried this:

function myColor(p){
var value = this.getProperty('item/index');
try{return getRowColor(value);}catch(error){}
return this.getProperty('background');
function myHeight(){
var value = this.getProperty('item/index');
try{return getRowHeight(value);}catch(error){}
return this.getProperty('height');
this.getTemplate('row', 0).setStyle('background-color', myColor);
this.getTemplate('left/item', 0).setStyle('background-color', myColor);
this.getTemplate('row', 0).setStyle('height', myHeight);
this.getTemplate('left/item', 0).setStyle('height', myHeight);

Only the heigth works. Why?
Tell me why????????????????????
Thursday, October 14, 2004
In this version composite style names do not work. Try 'background' instead...
Alex (ActiveWidgets)
Thursday, October 14, 2004
I tried, didnt work
Anything else?
Friday, October 15, 2004
try "backgroundColor"
Sunday, October 17, 2004
Not working.
Next please...
Tuesday, October 19, 2004
why doesnt anybody help me??? why???
Thursday, October 21, 2004
Not really sure , but try the backgroundColor into:
Thursday, October 21, 2004
Thank you amigo. but i am sure it doesnt work.
I used background-color, backgroundColor,background, whatever.
I tried these with the simpliest example from this site.
Friday, October 22, 2004
I know this is a little late.. but I stepped over that same problem.
I found out, that it's not possible, because the different row headers have the same stylesheet-class.

So it's not possible to set diferent colors to different row headers.

(please tell me if that right or nonsense alex)

Mark Weissenberg
Monday, August 1, 2005
sintax goes like this :

this.getTemplate('row', 0).Style.backgroundcolor = myColor;
Wednesday, March 15, 2006

This topic is archived.

Back to support forum

Forum search