:: 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????????????????????
holyshitlover
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
sorry
Anything else?
holyshitlover
Friday, October 15, 2004
try "backgroundColor"
vale
Sunday, October 17, 2004
Not working.
Next please...
sadlover
Tuesday, October 19, 2004
why doesnt anybody help me??? why???
loveheater
Thursday, October 21, 2004
Not really sure , but try the backgroundColor into:
http://www.activewidgets.com/messages/679-5.htm
Carlos
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.
carloslover
Friday, October 22, 2004
Hi,
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)

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

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

This topic is archived.


Back to support forum

Forum search