zoukankan      html  css  js  c++  java
  • 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 前台页面的控件

  • 相关阅读:
    orm添加表记录
    创建多表模型
    包的使用
    日志写法
    os模块,是通过和操作系统交互进行操作
    sys python解释器做交互
    软件开发规范
    模块 time模块 datatime模块 random模块
    装饰器
    装饰器进阶
  • 原文地址:https://www.cnblogs.com/luoqin520/p/5438336.html
Copyright © 2011-2022 走看看