hi guys..
i use this code to change background color if meet the condition, high or low. unfortunately, its works just at 1 cell. how to applied on the other cell?
<script>
$(function (){
var dg = $('#tbbe1b');
var col = dg.datagrid('getColumnOption','ti_507' );
col.styler = function(index,col){
if (col.ti_507<200 ){
return 'background-color:pink;color:blue;font-weight:bold'; //'background-color:#f6ced8';
}
else if (col.ti_507>239 ){
return 'background-color:pink;color:blue;font-weight:bold'; //'background-color:#f6ced8';
}
else {
return (col.ti_507);
}
};
dg.datagrid('refreshRow',index);
});
</script>