jQuery MiniUI

标题: datagrid锁定列后,给row加style,锁定部门没有效果 [打印本页]

作者: bl00071    时间: 2016-4-12 17:59:16     标题: datagrid锁定列后,给row加style,锁定部门没有效果

[attach]7332[/attach]

如图:红色部分,不能设置到整行

作者: dforce    时间: 2016-4-13 10:01:37

本帖最后由 dforce 于 2016-4-13 13:32 编辑

你是怎么加的

作者: bl00071    时间: 2016-6-16 11:36:50

dforce 发表于 2016-4-13 10:01
你是怎么加的

datagrid1.on("drawcell", function (e) {
                var record = e.record,
                column = e.column,
                field = e.field,
                value = e.value;
                if (column.field == "result") {
                    if (e.value == "不合格") {
                        e.rowStyle = "background:#ffcccc;";
                    }
                }
            });
作者: dforce    时间: 2016-6-16 11:55:49

bl00071 发表于 2016-6-16 11:36
datagrid1.on("drawcell", function (e) {
                var record = e.record,
                col ...

[attach]7557[/attach]
如图,未发现问题,你是不是右侧也有绘制的背景,被覆盖了?






欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2