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>
  • 相关阅读:
    由Kaggle竞赛wiki文章流量预测引发的pandas内存优化过程分享
    Python奇技淫巧 持续更新中....
    波士顿房价预测 最简单入门机器学习 Jupyter
    机器学习基本流程整理 这一篇就够啦
    阅读kaggle上大佬们的kernel
    wechat+项目开源分享 让你的微信账号有趣起来
    ✍36 PyQt5 模块错误排除
    ✍41 搭建wordpress&花生壳穿透
    ✍44.vs code远程编辑代码
    ✍42.图片识别相关cv2
  • 原文地址:https://www.cnblogs.com/lijinchang/p/4280912.html
Copyright © 2011-2022 走看看