jQuery   发布时间:2022-04-19  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jquery – JQGrid,根据条件更改行背景颜色大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有以下jqgrid使用导入到我的母版页的jquery ui主题
$("#shippingscheduletable").jqGrid({
            url: $("#shippingscheduleurl").attr('href'),datatype: 'json',mtype: 'GET',altRows: true,colNames: ['Dealer','Model','Invoice','Date','PO','serial','Status','City','State','IsPaid','Promo','Carrier','int notes','Ord Notes','Terms'],colmodel: [
     { name: 'Company',index: 'id',width: 125,align: 'left' },{ name: 'Model',index: 'Model',width: 50,{ name: 'Invoice',index: 'Invoice',{ name: 'Date',index: 'OrderDate',width: 60,{ name: 'Po',index: 'PONum',width: 75,{ name: 'serial',index: 'serial',{ name: 'Status',index: 'orderstatus',width: 70,{ name: 'City',index: 'City',width: 100,{ name: 'State',index: 'State',width: 30,{ name: 'IsPaid',index: 'IsPaid',{ name: 'Promo',index: 'Promo',{ name: 'Carrier',index: 'Carrier',width: 80,{ name: 'InternalNotes',index: 'InternalNotes',width: 110,{ name: 'OrderNotes',index: 'OrderNotes',{ name: 'Terms',index: 'Terms',align: 'left' }
     ],pager: jQuery("#shippingschedulepager"),rowNum: 100,rowList: [100,150,200],sortname: 'Company',sortorder: "asc",viewrecords: true,height: '700px',multiSELEct: true
        });

我想更改为IsPaid字段具有真实值的所有行的行颜色。这可能吗?如果是这样,我该怎么办
我一直在研究自定义格式,但我不确定这是否是正确的方法,因为我无法找到改变背景颜色的任何内容
谢谢!

解决方法

大佬总结

以上是大佬教程为你收集整理的jquery – JQGrid,根据条件更改行背景颜色全部内容,希望文章能够帮你解决jquery – JQGrid,根据条件更改行背景颜色所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。