• 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>
  • 相关阅读:
    基本计算器 II
    查看JVM使用的什么垃圾收集器
    java nio 例子
    获取jvm加载的类
    对上传的二进制视频文件进行第一帧截取
    conda与pip
    微信聊天记录导出与分析
    k8s creationTimestamp 参数
    adb logcat使用及Debug技巧
    聊聊HDR
  • 原文地址:https://www.cnblogs.com/lijinchang/p/4280912.html
Copyright © 2020-2023  润新知