// Row Rendering event
public void Row_Rendering() {
// Enter your code here
}
这是我要执行的条件..
"SCHD TIME" - is the TIMESTAMP(value) from SQL
if (SCHD_TIME >= 15mins) {
return 'background-color:red; color:#fff'
} else if (SCHD_TIME> 15mins <= 30mins) {
return 'background-color:yellow; color:#000;'
} else if (SCHD_TIME> 30mins <= 2hours) {
return 'background-color:green; color:#fff'
} else if (SCHD_TIME> 2hours) {
return 'background-color:none';
}
或者如果有更简单的方法在服务器端执行此操作,请分享谢谢!