jQuery MiniUI

标题: 求助!datagrid中cellbeginedit事件使用问题,在open返回不能设值进 [打印本页]

作者: 陈炳任    时间: 2016-11-15 16:35:42     标题: 求助!datagrid中cellbeginedit事件使用问题,在open返回不能设值进

zxczpcbmanagerForm.on("cellbeginedit",function(e){
                        if (e.field == "stask") {
                        var editor = e.editor;
                        var stask = e.record.stask;
                        //e.cancel = true;

                        mini.open({
                                    url: "/TBPWeb/app/dispatch/czpManager/ddzxmpczp_cb_czrw.jsp",      
                                    title:"操作项目填写",
                                    width: 450,
                                    height: 280,
                                    onload: function () {
                                    },
                            ondestroy: function (action) {
                                    if (action != "cancel") {
                                            e.value=action;//     此处为何没法设值进去,e对象是否失效,是否有其它方式在这里设值
                                     }
                                    }
                            });
                    }
                });


作者: felt    时间: 2016-11-15 17:03:48

mini.open的ondestroy是弹出子页面销毁事件
http://www.miniui.com/demo/#src=datagrid/rowedit_openwindow.html
可以参考我们弹出子页面编辑的示例操作
作者: 陈炳任    时间: 2016-11-15 19:56:16

felt 发表于 2016-11-15 17:03
mini.open的ondestroy是弹出子页面销毁事件
http://www.miniui.com/demo/#src=datagrid/rowedit_openwindow ...

您好,案例里面这个不是用open方式打开的呀!
UserSelectWindow是什么对象呀!这个引用的js我们项目本地没有
作者: felt    时间: 2016-11-16 10:03:43

陈炳任 发表于 2016-11-15 19:56
您好,案例里面这个不是用open方式打开的呀!
UserSelectWindow是什么对象呀!这个引用的js我们项目本 ...

http://www.miniui.com/demo/#src=datagrid/rowedit_openpage.html





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