2016-06-12 10:42题主

如何改变grid某一行的颜色,网上好多方法都试了不管用

如何改变grid某一行的颜色,网上好多方法都试了不管用,想要的效果如图:
2016-06-13 09:07#1
请参考wb7示例模块->控件使用->表格->高亮 示例
2016-07-22 11:26#2

Ext.view.Table
view source
record, index, rowParams, store ) : String

Override this function to apply custom CSS classes to rows during rendering. This function should return the CSS class name (or empty string '' for none) that will be added to the row's wrapping div. To apply multiple class names, simply return them space-delimited within the string (e.g. 'my-class another-class'). Example usage:

viewConfig: {
    getRowClass: function(record, rowIndex, rowParams, store){
        return record.get("valid") ? "row-valid" : "row-error";
    }
}

返回开发者社区