ComboGrid 行内点击编辑内容

最近easyui需要在行内编辑选中项,但是编辑的内容出了当前选中列值,还有其他的,比较麻烦,

先看下这段代码

              columns: [[
                        { field: 'GuestID', title: '编号', align: 'center',  20 },
                        { field: 'Name', title: '姓名', align: 'center',  25 },
                        { field: 'PassPort', title: '身份证', align: 'center',  40 },
                        { field: 'Mobile', title: '电话', align: 'center',  30 },
                        { field: 'Update',
                            title: '编辑',
                            align: 'center',
                             10,
                            formatter: function (value, rows) {
                                var click_info = "OpenWindow('GuestUpdate.aspx?ID=" + rows.GuestID + "','客人信息修改','',500,170)";
//打开一个窗体,把获取的行值传过去
                                return '<a href="javascript:void(0)" onclick=' + click_info + '><div style="text-align:left;100%;cursor:text" title=""><img src="themes/icons/pencil.png"  style="15px;height:20px;padding-left:6px;"/> </div>';
                            }
                        }
                 ]]

2.根据获取的id。查询你要修改的值

将值赋值 GuestUpdate.aspx 前台页面的控件

原文地址:https://www.cnblogs.com/luoqin520/p/5438336.html