`

gridPanel设置行变色

 
阅读更多
doStoreLoad: function() {
		this.setContentStyle();
	},
	dbSortchange: function() {
		this.setContentStyle();
	},
	setContentStyle: function() {
		var total =  this.grid.store.getCount(),view = this.grid.getView();
		for(var i=0 ;i<total;i++) {
			var record = this.grid.store.getAt(i);
			var row = view.getRow(i);
			if(record.data.is_disabled == '2') {
				row.style.color='#9D9D9D';
			}
		}
	}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics