问题描述:

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

 

解决方法:

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

相关文章:

  • 2021-07-01
  • 2021-05-18
  • 2021-11-27
  • 2021-07-15
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-10-22
  • 2022-12-23
  • 2021-09-15
  • 2021-11-03
相关资源
相似解决方案