EasyUI 中combotree 默认不能选择父节点
来源:互联网 发布:梦三版本优化在第几节 编辑:程序博客网 时间:2024/05/29 15:36
这需要添加如下字段就行,搜了半天,说什么判断是不是子节点什么的,都是胡扯!
onlyLeafCheck:true,
//病因分类
$('#artReason').combotree({
width:200,
method:'GET',
//url: '${ctx}/business/dict/json/DicEtilolgy',
data:DicEtilolgy_data,
idField : 'id',
textFiled : 'name',
parentField : 'pid',
animate:true,
mode:'local',
multiple: true,
onlyLeafCheck:true,
onbeforeselect:function(node){
debugger;
alert(node.state);
if(node.state){
$("#artReason").tree("unselect");
}
},
onClick:function(data){
return;
debugger;
},
onLoadSuccess:function(node,data){
// $("#artReason").combotree('setValue',['11','12']);
},
// onSelect : function(node) {
// debugger;
// if(parseInt(node.id)<10){
// $('#artReason').combotree('clear');
// return;
// }
// //返回树对象
// var tree = $(this).tree;
// //选中的节点是否为叶子节点,如果不是叶子节点,清除选中
// var isLeaf = tree('isLeaf', node.target);
// if (!isLeaf) {
// //清除选中
// $('#artReason').combotree('clear');
// }
// },
onChange:function(newValue, oldValue) {
debugger;
},
// filter:function(q,row){
// debugger;
// var opts=$(this).combobox("options");
// return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
// },
});
- EasyUI 中combotree 默认不能选择父节点
- EasyUI的combotree 默认节点选中呢
- Easyui控制combotree只能选择叶子节点
- jQuery EasyUI — 只选择combotree的叶子节点
- easyui combotree 实现勾选checkbox 同时选择所有子节点,取消父节点同时取消所有子节点
- easyui中combotree循环获取父节点至根节点并输出路径
- EasyUi中combotree循环获取父节点至根节点并输出路径
- easyUi combotree 实现动态加载树节点
- easyUi combotree 实现动态加载树节点
- easyui combotree 异步加载节点 默认值 问题
- Easyui-ComboTree数据填充,递归。树形节点
- Easyui-ComboTree数据填充,递归。树形节点
- easyUI获取tree、combotree节点级别
- easyui中combotree加载数据处理
- easyui Combotree默认选中某一项
- easyui Combotree默认选中第一项
- easyui combotree如何只选择子项
- easyui 下拉选择树(ComboTree) 的实现
- php中mysql操作的buffer知识
- maven管理SpringMVC+Mybatis无法加载resource资源文件解决办法
- getopt_long使用
- 90年代谁最强?乔丹不可撼动石佛上榜
- DropDownList
- EasyUI 中combotree 默认不能选择父节点
- androidのadb命令终端实时打印cpu资源
- eclipse屏蔽恶心的系统alt键
- 性能优化之PHP优化
- SAP实施方法论之探讨-现状调研与需求分析
- orocos Logger 类的设计
- Grunt的配置及使用(压缩合并js/css)
- hibernate 懒加载
- 基于Kubernetes进行分布式负载测试