問題描述:
如何根據數據列條件改變行背景?
for(var i=0;i<DataGridObj.ClientRows.length;i++)
{
var str = DataGridObj.ClientRows[i].cells[6].innerText;
if(str=='急件')
{
DataGridObj.ClientRows[i].style.background = '#FFFF00' ;
}
if(str=='加急件')
{
DataGridObj.ClientRows[i].style.background = '#FF0000' ;
}
}
國內頂級BPM流程管理中間件方正飛鴻(www.founderfix.com)出品,歡迎轉載!