Cavalier |
用户名称: | lihongsai |
加入日期: | 2015-04-03 12:19 |
登录次数: | 62 |
|
如何改变grid某一行的颜色,网上好多方法都试了不管用 如何改变grid某一行的颜色,网上好多方法都试了不管用,想要的效果如图: |
Zhao WJ |
用户名称: | zhaowj |
加入日期: | 2011-05-02 12:07 |
登录次数: | 2357 |
|
请参考wb7示例模块->控件使用->表格->高亮 示例 |
tulip |
用户名称: | tulip |
加入日期: | 2012-05-30 10:38 |
登录次数: | 607 |
|
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";
}
}
|