easyui 行编辑保存后combobox显示value而不显示text解决方案

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u014601583/article/details/83661770

点击保存时触发onEndEdit函数:

//   column_type为combobox的filed名字。

 function onEndEdit(index, row){
    var ed_column_type = $(this).datagrid('getEditor', {
        index: index,
        field: 'column_type'
    });
    row.column_type = $(ed_column_type.target).combobox('getText');

展开阅读全文

easyui datagrid combobox 动态绑定onChange 事件后,combobox 显示问题

06-06

在datagrid 新增的行里面 我需要根据combobox 选择的值是 什么数据类型,去设置 长度和精度是否可填。加载rn cellftype.target.combobox(rn onChange: function (n, o) rn if (n == "INT" || n == "DATE") rn var cellflength = cellEdits[5];rn var cellfaccuracy = cellEdits[6];rn cellflength.target.attr("disabled", true);rn cellfaccuracy.target.attr("disabled", true);rn rn rn ); 后 下拉菜单显示不出来了图1,需要手动调整列宽才会显示图2, 如图rn[img=https://img-bbs.csdn.net/upload/201606/06/1465179602_13195.png][/img]图1rn[img=https://img-bbs.csdn.net/upload/201606/06/1465179594_852739.png][/img]图2rn代码如下rn that.addClick = function () rn if (editRow != undefined) rn that.grid1.datagrid("endEdit", editRow);rn rn if (that.grid1.datagrid('validateRow', 0)) rn that.grid1.datagrid('insertRow', rn index: 0,rn row: rn fid: 'New',rn tid: strcode,rn fname: '',rn ftext: '',rn ftype: 'NVARCHAR',rn flength: '',rn faccuracy: '',rn isnul: 'N',rn defaultval: ''rn rn );rn rn that.grid1.datagrid("beginEdit", 0);rn editRow = 0;rn //选择不同字段类型有不同的值设置rn var cellEdits = that.grid1.datagrid('getEditors', 0);rn var cellftype = cellEdits[4];rn cellftype.target.combobox(rn onChange: function (n, o) rn if (n == "INT" || n == "DATE") rn var cellflength = cellEdits[5];rn var cellfaccuracy = cellEdits[6];rn cellflength.target.attr("disabled", true);rn cellfaccuracy.target.attr("disabled", true);rn rn rn );rnrn请大神帮忙看看 ,感谢,急! 论坛

easyUI treegrid 不显示

03-24

[color=#FF0000]这个是jsp页面[/color][size=24px][/size]rn<%@ page language="java" contentType="text/html; UTF-8" pageEncoding="UTF-8" %>rn<%rn String path = request.getContextPath();rn String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rnrnrnrn rn rn rn jQuery EasyUI Demorn rn rn rn rnrnrn Basic TreeGridrn TreeGrid allows you to expand or collapse group rows.rn rn rn rn rn Namern Sizern rn rn rn rnrnrn这个是后台传回的数据rn["children":["URL":"admin/adminUser/index.action","id":2,"name":"管理员管理","orderId":71,"roleType":1,"URL":"admin/role/index.action","id":3,"name":"角色管理","orderId":72,"roleType":1,"URL":"/admin/model/modellist.action","id":128,"name":"菜单管理","orderId":136,"roleType":1],"id":1,"name":"系统管理","orderId":1,"roleType":1,"children":["URL":"term/jumpPage.action?operting=view/terminal/agentManager/agentOutTerm","id":80,"name":"商户終端","orderId":13,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/agentManager/agentOutTermToOne","id":104,"name":"代理商终端","orderId":112,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/agentManager/termStatusInfoOne","id":82,"name":"终端管理","orderId":113,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/termFlowTmp/termFlowTmpByAgent","id":109,"name":"终端审批回退","orderId":117,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/agentManager/termStatusInfoTwo","id":83,"name":"终端管理","orderId":120,"roleType":2],"id":56,"name":"终端管理","orderId":1,"roleType":2,"children":["URL":"admin/adv/index.action","id":6,"name":"广告审核","orderId":41,"roleType":1,"URL":"admin/sysConfig/servingStatus.action","id":7,"name":"广告投放策略","orderId":42,"roleType":1,"URL":"admin/profitConfig/index.action","id":8,"name":"分润设置","orderId":43,"roleType":1,"URL":"admin/industry/index.action","id":9,"name":"行业管理","orderId":44,"roleType":1,"URL":"admin/getAdvManageList.action","id":10,"name":"平台广告管理","orderId":45,"roleType":1,"URL":"admin/message/index.action","id":12,"name":"消息中心","orderId":46,"roleType":1,"URL":"admin/sysConfig/termTime.action","id":86,"name":"终端播放设置","orderId":47,"roleType":1,"URL":"admin/article/index.action","id":94,"name":"文章管理\r\n","orderId":48,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/termSetMoney","id":96,"name":"终端价格设置","orderId":106,"roleType":1],"id":5,"name":"运营管理","orderId":2,"roleType":1,"children":["URL":"agent/skipNewAgent.action?operting=view/agent/agentManager/QryListAgentAdv","id":66,"name":"广告主管理","orderId":6,"roleType":2,"URL":"agent/skipNewAgent.action?operting=view/agent/agentManager/QryAgentUser","id":84,"name":"商户管理","orderId":15,"roleType":2,"URL":"agent/toQRCodeMarketing.action","id":98,"name":"代理商推广","orderId":17,"roleType":2,"URL":"agent/indexUser.action?merType=04","id":34,"name":"商户审批回退","orderId":81,"roleType":2,"URL":"agent/qryListAgentOne.action","id":100,"name":"二级代理商管理","orderId":108,"roleType":2,"URL":"agent/indexUser.action?merType=06","id":101,"name":"二级商户审核","orderId":109,"roleType":2],"id":58,"name":"代理商管理","orderId":2,"roleType":2,"URL":"","children":["URL":"term/jumpPage.action?operting=view/terminal/findtermInfo","id":18,"name":"入库管理","orderId":73,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/findOutTermInfo","id":26,"name":"出库管理","orderId":77,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/termStatusInfo","id":28,"name":"终端状态管理","orderId":78,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/templateManager","id":97,"name":"模版管理","orderId":107,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/termFlowTmp/termFlowTmp","id":108,"name":"终端审核","orderId":116,"roleType":1],"id":4,"name":"终端管理","orderId":3,"roleType":1,"children":["URL":"agent/order/index.action","id":68,"name":"订单管理","orderId":7,"roleType":2,"URL":"agent/profitConfig/oneLevelAgent.action","id":102,"name":"分润设置","orderId":110,"roleType":2,"URL":"agent/profitConfig/twoLevelAgent.action","id":103,"name":"二级分润设置","orderId":111,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/terminfosub/termInfoProfit","id":107,"name":"终端分润设置","orderId":115,"roleType":2],"id":60,"name":"交易管理","orderId":3,"roleType":2,"children":["URL":"admin/getOrderPage.action","id":14,"name":"订单管理","orderId":51,"roleType":1,"URL":"admin/sysConfig/orderDisTime.action","id":15,"name":"订单设置","orderId":52,"roleType":1],"id":13,"name":"交易管理","orderId":4,"roleType":1,"children":["URL":"agent/finance/index.action?idenType=agent","id":70,"name":"代理商对账","orderId":8,"roleType":2,"URL":"agent/finance/index.action?idenType=mer","id":72,"name":"商户对账","orderId":9,"roleType":2,"URL":"agent/finance/tardRecordIndex.action","id":74,"name":"交易记录","orderId":10,"roleType":2,"URL":"agent/order/withdrawIndex.action","id":76,"name":"提现管理","orderId":11,"roleType":2,"URL":"agent/order/bankCardList.action","id":88,"name":"账户管理","orderId":16,"roleType":2],"id":62,"name":"财务管理","orderId":4,"roleType":2,"URL":"","children":["URL":"agent/qryListAgent.action","id":20,"name":"代理商管理","orderId":74,"roleType":1,"URL":"agent/indexUser.action?merType=01","id":22,"name":"广告主管理","orderId":75,"roleType":1,"URL":"Auser/userlist.action","id":23,"name":"会员管理","orderId":76,"roleType":1,"URL":"agent/auditAgent.action","id":30,"name":"代理商审核","orderId":79,"roleType":1,"URL":"agent/indexUser.action?merType=05","id":36,"name":"商户管理","orderId":80,"roleType":1,"URL":"agent/indexUser.action?merType=03","id":32,"name":"商户审核","orderId":82,"roleType":1],"id":16,"name":"代理商管理","orderId":5,"roleType":1,"children":["URL":"finance/indexFinance.action?merType=01","id":46,"name":"平台对账","orderId":99,"roleType":1,"URL":"finance/indexFinance.action?merType=02","id":48,"name":"代理商对账","orderId":100,"roleType":1,"URL":"finance/merchantAccountList.action","id":50,"name":"商户对账","orderId":101,"roleType":1,"URL":"finance/generalAccountList.action","id":52,"name":"普通用户对账","orderId":102,"roleType":1,"URL":"finance/tradeRecordList.action","id":54,"name":"交易记录","orderId":103,"roleType":1,"URL":"finance/getWithdrawPage.action","id":55,"name":"提现记录","orderId":104,"roleType":1,"URL":"finance/invoiceManagementList.action","id":92,"name":"发票管理","orderId":105,"roleType":1,"URL":"record/index.action?operting=view/finance/record/agentRecordList","id":119,"name":"代理商交易记录","orderId":127,"roleType":1,"URL":"record/index.action?operting=view/finance/record/userRecordList","id":120,"name":"用户交易记录","orderId":128,"roleType":1,"URL":"web/chanpay/toApplyListPage.action","id":121,"name":"畅捷支付代理商管理","orderId":129,"roleType":1],"id":44,"name":"财务管理","orderId":6,"roleType":1,"URL":"","children":["URL":"redis/toRedisPlayPlan.action","id":99,"name":"redis播放计划","orderId":49,"roleType":1,"URL":"term/jumpPage.action?operting=view/sys/setSysTypes","id":106,"name":"系统属性配置","orderId":114,"roleType":1],"id":105,"name":"后台运维","orderId":113,"roleType":1,"children":["URL":"term/jumpPage.action?operting=view/admin/account/acAdManager","id":110,"name":"账户充值","orderId":118,"roleType":1,"URL":"admin/coupons/setCoupons.action","id":111,"name":"券模板设置","orderId":119,"roleType":1,"URL":"finance/toAccountList.action","id":113,"name":"账户查询","orderId":121,"roleType":1],"id":112,"name":"账户管理","orderId":120,"roleType":1,"children":["id":115,"name":"百度互联网广告","orderId":123,"roleType":1,"URL":"adsys/editAdPrice.action","id":118,"name":"广告价格设置","orderId":126,"roleType":1],"id":114,"name":"互联网广告管理","orderId":122,"roleType":1,"children":["URL":"/agent/finance/index.action?idenType=twoAgent","id":123,"name":"二级代理分润设置","orderId":131,"roleType":2,"URL":"/agent/finance/index.action?idenType=agentStore","id":124,"name":"商户分润设置","orderId":132,"roleType":2],"id":122,"name":"分润设置","orderId":130,"roleType":2,"children":["id":125,"name":"订单系统管理","orderId":133,"roleType":1,"id":130,"name":"账务系统管理","orderId":138,"roleType":1],"id":129,"name":"企业版","orderId":137,"roleType":1]rnrn[b]页面显示[/b][size=18px][/size]rn[img=https://img-bbs.csdn.net/upload/201803/24/1521862979_790501.jpg][/img]rnrnjson在线解析数据没问题啊rn[img=https://img-bbs.csdn.net/upload/201803/24/1521862708_573201.jpg][/img]rn求助啊 [img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img] 论坛

没有更多推荐了,返回首页