setting a color for a single cell
How can I set the text or background color for a single cell ?
Will appreciate any help
obj.getCellTemplate(1).setStyle("color", "green"); // column-1
obj.getCellTemplate(2, 3).setStyle("color", "blue"); // column-2, row-3
Replace "color" with "background-color" for backgraound
The message right above yours shows you the 3 ways that you can use it. What more are you looking for?
I have same question as Satoshi. When I use getCellTemplate it gives me an error "getCellTemplate is not a function"
I am using 1.0 version. Can you tell me what should I use to change color of single cell in version 1.0
I do not know how to change the color of a single cell in 1.0 and I have moved all my work over to 2.0, sorry that I can't answer the question for you all.
var value = this.getItemProperty("value");
return value > 10000 ? "red" : "blue";
The only problem is it will go through all the rows. Even if you want only the first row.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.