3.2.0

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
October 14,
In this version composite style names do not work. Try 'background' instead...
Alex (ActiveWidgets)
October 14,
I tried, didnt work
sorry
Anything else?
holyshitlover
October 15,
try "backgroundColor"
vale
October 17,
Not working.
Next please...
sadlover
October 19,
why doesnt anybody help me??? why???
loveheater
October 21,
Not really sure , but try the backgroundColor into:
http://www.activewidgets.com/messages/679-5.htm
Carlos
October 21,
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
October 22,
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
August 1,
sintax goes like this :

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

This topic is archived.

See also:


Back to support forum