根据数据列条件改变行背景

 

问题描述:

如何根据数据列条件改变行背景?

 

解决方法:

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)出品,欢迎转载!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章