Dynamic grid cell class assistance
I've seen a few examples of this, however I'm not getting results. I think it's an easy one. What's wrong with the following (shortened) example? The text "completed" would be one possible cell value for column 4.
Thanks in advance!
<style>
.aw-state-completed {
background:url("images/dash_completed.gif") no-repeat;
}
</style>
grid.defineCellProperty("state", function(col, row){
if(col==4) {
return this.getCellText(col, row);
}
});
grid.getColumnTemplate(4).setClass("state", function(){
return this.getControlProperty("state");
});
}
Thanks in advance!
Curt K. :: California
April 8,