Is there an equivalent to an "onCellLoad()" event for grid?
I apologize if this has been addressed, and I'm sure it has, however I've been wading through the forum for over an hour.
I'm want to test a cell value upon initial load (or setting of that cell value) and set the cell image based on that. I can do easily with the onCellValidated (et. al.). If not, what is the most efficient way to accomplish this? It would be great to just re-use this block rather than doing a loop through all the values. Here's my cell changed sample:
obj.onCellValidated = function(text, col, row){
// Yes, I know I can simply lower-case the text and set the
// css in one pass ...
if( col==3 ) {
switch(text) {
case "Complete":
obj.setCellImage("complete",col,row);
break;
case "Incomplete":
obj.setCellImage("incomplete",col,row);
break;
case "Waived":
obj.setCellImage("waived",col,row); break;
default: break;
}
}
};
Thanks in advance.
I'm want to test a cell value upon initial load (or setting of that cell value) and set the cell image based on that. I can do easily with the onCellValidated (et. al.). If not, what is the most efficient way to accomplish this? It would be great to just re-use this block rather than doing a loop through all the values. Here's my cell changed sample:
obj.onCellValidated = function(text, col, row){
// Yes, I know I can simply lower-case the text and set the
// css in one pass ...
if( col==3 ) {
switch(text) {
case "Complete":
obj.setCellImage("complete",col,row);
break;
case "Incomplete":
obj.setCellImage("incomplete",col,row);
break;
case "Waived":
obj.setCellImage("waived",col,row); break;
default: break;
}
}
};
Thanks in advance.
Curt K. :: California
April 2,