1.tree,使用复选框时,如果想让所有级联的选中节点都是选中状态(都打对勾),修改样式文件 thems/default/easyui.css
//不选中时,不大对勾
.tree-checkbox0 {
background: url('images/tree_icons.png') no-repeat -208px -18px;
}
//选中时,打对勾
.tree-checkbox1 {
background: url('images/tree_icons.png') no-repeat -224px -18px;
}
//显示小方格,.tree-checkbox1一样的样式就可以了
.tree-checkbox2 {
background: url('images/tree_icons.png') no-repeat -240px -18px;
}
修改jquery.easyui.min.js代码
function _16c(_16d,_16e){
_16e=_16e||"checked";
if(!$.isArray(_16e)){
_16e=[_16e];
}
var _16f=[];
for(var i=0;i<_16e.length;i++){
var s=_16e[i];
if(s=="checked"){
_16f.push("span.tree-checkbox1");
}else{
if(s=="unchecked"){
_16f.push("span.tree-checkbox0");
}else{
if(s=="indeterminate"){
_16f.push("span.tree-checkbox2");
}
}
}
}
//tree控件:所有子节点取消选中后,父节点不取消选中
屏蔽代码:
jquery.easyui.min.js 1565-1571 行
2.form在window中提交数据时的问题
问题描述:form在弹出的window时,向服务器断提交数据时,服务器无法通过form[]获取值
解决方法:更改form所在页面中form的id,不要和父页面中的form.id值相同。
3.combobox像select那样只能选不能输入 : 加属性editable:false