combobox实现下拉列表多选, 效果如下

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASMAAAEFCAIAAAAntxZRAAAUHUlEQVR4nO2da1PbSp6H9akow6cJLspfIbuf4AQqteGNq6bOzJt5sVu1WxlTzE5Yz7nsyUx2zmZ2nCGQhEmOQwgksbnYgG2ZWwDvC/nSLbVkdds0En6e+lcF22rAiZ78W23pJ6d9fk1R1E2Xc+u/AUVNQmEaRdkoTKMoG4VpFGWjMI2ibBSmUZSNwjSKslGYRlE2CtMoykZhGkXZKEyjKBuFaRRlozCtW+7ZtXt23aIo0/J2IUyLcqx1etU4uTpuXx25l4etyzpF6dRh6/LIvTxuXzVOrlqnV0rfJto0r4kdn1wdupf7za+Vo4vP9Yud2vl27Xz7gKLiVe18p3b+uX5RObrYb349dC+PT65agf420aa1zq4b7ata67JyePFh7+xt5fTVzsnax/bLrfbqlktRcerlVnvtY/vVzsnbyumHvbPK4UWtddloX7UwzSv37Pr45KrWuvxUv3hXOS1tur97Xv/Nj3v5YpWidOs3P+4VntdfbLrvKqef6he11uXxiTSNnFzTWqdXh+5l5fDiXeX0p9eN3z7d/1w/v7q67gD0qLlxa79xvbV/8e9/qT1903hXOa0cXhy6l63Tq0k3zT27bpxc7Te/ftg7e/HB/e3T/UscgwDxTfPqoHn9r88O/v7B/bB3tt/82hDa2uSadty+qhxdvK2cFp7XP9fPb/vfFJKIrmk1t7O5d1H4a/1t5bRydHHcnnjTWmfXR+7l5/rFq52Tb7/fvRb6meM4t/cvC8nCwLSDZufXP+y+2jn5XL84ci9b4zFtOedkHq2bDl+ac/SHP8mKQzYeZeaemJl22LrcqZ2vfWzni1XxLxfToI+BaTW3ky9W1z62d2rnh60Q05bmnCH4dmvRtOVcyJjcUoRpYZ6ovlt2+bp9fr3+cLo3qryQmV7YMOxp9dbldu385RamQSjGpr3cam/XzutRpoW3CMWrI/W08kIm6scFpOqa1j6/XpqbXti4Xn84nXlYNvrRPdMOzle3XEyDMIxNW91ytw/GYVqg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ojFVX4prD9EKExLCphmYprOOSIrOeHoTHFbp8BRWmQU8aDpid/VH0AubY9piQDTtE3TPu9ReffP6AzjsChioZN1/M1Mme+PaUkB0/RMuzk0o4jF+zsJz80sLkZ8VBD3m8P4wbSkmAZ3G0zDNLABpmEa2ADTMA1sgGmYBjbANEwDG2AapoENMA3TwAaYhmlgA0zDNLABpmEa2ADTMA1sgGl6ppFhDGZgmrZpZBiDAZhmYhoZxqALphmadlMZxmFBWf1LOv1hB8K128OvRxsegRyVhMflbSOAaSOZFifDuNPp7r/9XTQqdi7iNb9sypweX6RPeKg4Ech2wTRD02JnGHtZILncjK+3hIdZBV8Z1mjkoK2IgDsikG8NTDMxTSvDuNPpKEI+5H14YF7XDXn7sNzU3ljZrYFcqjQgIpBvB6Vp/w9mBVj/thaLoAAAAABJRU5ErkJggg==" alt="" />

一、先定义一个easyui-combobox

<td>
目标人群:
</td>
<td>
<input id="cmbAgeType" class="easyui-combobox" name="dept" />
</td>

二、在javascript中写入如下代码

   $('#cmbAgeType').combobox({
url: 'AjaxHandler/RadioCommon.ashx?action=bindAgeType',//对应的ashx页面的数据源
method: 'get',
valueField: 'CID',//绑定字段ID
textField: 'CNAME',绑定字段Name
panelHeight: 'auto',//自适应
multiple: true,
formatter: function (row) {
var opts = $(this).combobox('options');
return '<input type="checkbox" class="combobox-checkbox" id="' + row[opts.valueField] + '">' + row[opts.textField]
}, onShowPanel: function () {
var opts = $(this).combobox('options');
var target = this;
var values = $(target).combobox('getValues');
$.map(values, function (value) {
var el = opts.finder.getEl(target, value);
el.find('input.combobox-checkbox')._propAttr('checked', true);
})
},
onLoadSuccess: function () {
var opts = $(this).combobox('options');
var target = this;
var values = $(target).combobox('getValues');
$.map(values, function (value) {
var el = opts.finder.getEl(target, value);
el.find('input.combobox-checkbox')._propAttr('checked', true);
})
},
onSelect: function (row) {
var opts = $(this).combobox('options');
var el = opts.finder.getEl(this, row[opts.valueField]);
el.find('input.combobox-checkbox')._propAttr('checked', true);
},
onUnselect: function (row) {
var opts = $(this).combobox('options');
var el = opts.finder.getEl(this, row[opts.valueField]);
el.find('input.combobox-checkbox')._propAttr('checked', false);
}
});

三、后台传到前台的Json格式

[{"CID":,"CNAME":"10岁以上","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"男","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"女","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"10-19岁","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"20-29岁","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"30-39岁","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"40-49岁","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""},{"CID":,"CNAME":"50岁以上","CSEX":,"CAGE":,"CEDUCATION":,"CINCOMING":,"CMARRY":,"CJOB":,"CDECIDER":,"CBACKUP1":,"CBACKUP2":,"CBACKUP3":,"CARG1":"","CARG2":"","CARG3":"","CVALID":,"CTX3":""}]

EasyUI combobox下拉多选框的实现的更多相关文章

  1. 关于easyui combobox下拉框实现多选框的实现

    好长时间没有更博了,一是因为最近真的比较忙,二是因为自己是真的偷懒了,哈哈 好啦,这篇博客主要是总结一些关于easyui combobox下拉框实现多选框的实现,包括前台界面的展示,和后台对数据的获取 ...

  2. easyui combobox下拉框复制后再禁用,点击不会出现下拉框

    easyui combobox下拉框禁用,点击不会出现下拉框 需要做到,在给easyui combobox赋值后,再禁用easyui combobox 解决办法: $("#time-sele ...

  3. 我的第一个jquery插件:下拉多选框

    <!DOCTYPE HTML> <html> <head> <title> New Document </title> <meta n ...

  4. 使用jQuery为文本框、单选框、多选框、下拉框、下拉多选框设值及返回值的处理

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/ ...

  5. angular2.x 下拉多选框选择组件

    angular2.x - 5.x 的下拉多选框选择组件 ng2 -- ng5.最近在学angular4,经常在交流群看见很多人问 下拉多选怎么做... 今天就随便写的个. 组件源码 百度云   链接: ...

  6. 品优购商城项目(二)AngularJS、自动代码生成器、select2下拉多选框

    品优购商城想项目第二阶段 AngularJS.自动代码生成器.select2下拉多选框 完成了课程第三天.第四天的的任务. 1.学习了AngularJs前端的mvc分层思想,js部分分成control ...

  7. 自己用ul模拟实现下拉多选框,

    模拟实现下拉多选框 效果如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset= ...

  8. jquery--获取多选框的值、获取下拉多选框的值

    获取多选框的值 var packageCodeList=new Array(); $('#server_id:checked').each(function(){ packageCodeList.pu ...

  9. 自定义实现 PyQt5 下拉复选框 ComboCheckBox

    一.前言 由于最近的项目需要具有复选功能,但过多的复选框会影响界面布局和美观,因而想到把 PyQt5 的下拉列表和复选框结合起来,但在 PyQt5 中并没有这样的组件供我们使用,所以想要自己实现一个下 ...

随机推荐

  1. call是什么?一次说个明白

    首先简单粗暴的从例子中看概念 var a = {}; function foo() { this.name = "hello"; this.age = 100 } foo.call ...

  2. 【Unity与23种设计模式】代理模式(Proxy)

    GoF中定义: "提供一个代理者位置给一个对象,好让代理者可以控制存取这个对象." 代理模式多用来优化资源的加载 当资源已经加载过时,使用原来的资源 当资源没有加载过时,开始加载 ...

  3. oracle、instantclient以及plsql安装包

    链接:http://pan.baidu.com/s/1skZidWT 密码:l1hq

  4. Loadrunner11不能调用IE8解决方法大全

    刚安装了英文版的Loadrunner 11, 用的是IE8, 开始录制时没有启动IE, 试了网上很多的方法,最终解决了问题.总结一般产生问题的原因如下. 1.当你主机上有多个浏览器时,loadrunn ...

  5. CSS( Cascading Style Sheets )简书

    (注:带*号的属性是CSS3新增属性)一.基本规则1.css通常存储在样式表(style)中,用于定义如何显示HTML元素:2.css主要由两个部分构成:选择器和一条或多条声明. 选择器通常是需要改变 ...

  6. selenium 基础(一)

    selenium安装 pip install selenium selenium操作浏览器原理 早期selenium 1.0 用的selenium RC, 后来selenum2集合了selenium1 ...

  7. canvas小球

      小球碰撞效果是采用面向对象的方式写的,在小球的构造器里包含了小球的属性值,大小,移动速度,半径大小以及颜色. 在小球的原型方法里,添加了小球运动的方法,当小球碰撞到屏幕边界的时候进行反弹. 小球是 ...

  8. NodeJS定时任务

    在实际开发项目中,会遇到很多定时任务的工作.比如:定时导出某些数据.定时发送消息或邮件给用户.定时备份什么类型的文件等等 一般可以写个定时器,来完成相应的需求,在node.js中自已实现也非常容易,接 ...

  9. c++ --> #define中的三个特殊符号:#,##,#@

    #define中的三个特殊符号:#,##,#@ 看下面三个define宏定义: #define Conn(x,y) x##y #define ToChar(x) #@x #define ToStrin ...

  10. spring-boot-devtools

    Create a new Maven Project  and  we have two class under the package com.example.demo like below scr ...