- 注册时间
- 2013-10-29
- 最后登录
- 2014-1-21
- 阅读权限
- 10
- 积分
- 144
- 精华
- 0
- 帖子
- 46
|
html代码
<div field="qxbg" name="qxbg" width="50"
headerAlign="center" align="center" allowSort="true">
js代码如下
grid.on("drawcell", function (e) {
var record = e.record,
column = e.column,
field = e.field,
value = e.value;
//设置行样式
if (record.qxbg == 1) {
e.rowCls = "myrow";
}
});
|
|