zoukankan      html  css  js  c++  java
  • easyui datagrid中关联combox

    datagrid中列上关联combobox
    { field: 'SysCode', title: '系统代码', 150, align: 'left', editor: {
    type: 'combobox',
    options:
    {
    valueField: 'id',
    textField: '要显示的字段名',
    url: '/Sys/SearchCodeInFunctionModel',
    }
    }


    <th data-options="field:'fShipCom',100,align:'center',
                                        formatter:function(value,row){
                                            return row.fShipCom;
                                        },
                                        editor:{
                                            type:'combobox',
                                            options:{
                                                valueField:'fShipCom',
                                                textField:'fShipCom',
                                                url:'ShipPlan.ashx?act=getShipCom',
                                                 onChange :function(value){
                                                  
                                                    var tr = $(this).closest('tr.datagrid-row');
                                                     var idx = parseInt(tr.attr('datagrid-row-index'));
                                                     var ed = $('#dg').datagrid('getEditor',{index:0, field:'fShipName'});
                                                    alert(idx);
                                                    alert(value);
     
                                                    $(ed.target).combobox('reload','ShipPlan.ashx?act=getShipName&fshipCom='+escape(value));
                                                   
                                                     
                                                    },
                                                required:true
                                            }
                                        }">船公司</th>
  • 相关阅读:
    性能测试——监控前端性能
    centos7 查看防火墙状态
    Flutter项目实战之女装商城------火爆专区实现、商品分类数据准备
    鸿蒙系统,我要拥抱你~~
    【python3】python中 r'', b'', u'', f'' 的含义
    【python3】excel输入输出
    【python3】return和yield的区别
    【python3】spyder中清除变量命令
    【文章知识点】深度解析长末端重复反转录转座子(LTR-RTs)
    【python3】给List添加元素
  • 原文地址:https://www.cnblogs.com/lijinchang/p/4280912.html
Copyright © 2011-2022 走看看