jquery easyui
官方文档地址:http://www.jeasyui.com/documentation/#
treegrid
1、寻找节点
var node = $("#tg").treegrid("find", node.id);
2、节点展开
$("#tg").treegrid("expandTo", node.id);
3、重新加载节点下的子节点
$("#tg").treegrid("reload", node.id);
// 如何节点为叶子节点可能面临加载失败,可以换做( idFiled :初始化treegird绑定时使用字段):
$("#tg").treegrid("append", {
parent: node.id,
data: [{idFiled:'随意',name:'' }]
});
$("#tg").treegrid("reload", node.id);
1.5版本 comboTree、combo 不检索中文(firefox浏览器下)
if(opts.editable){
var _85b = t.combo("textbox");
_85b.bind("input",function(e){
if(_a04.timer){
clearTimeout(_a04.timer);
}
_a04.timer=setTimeout(function(){
var q=_85b.val();
if(_a04.previousValue != q){
_a04.previousValue = q;
t.combo("showPanel");
opts.keyHandler.query.call(_a03, _85b.val(),e);
t.combo("validate");
}
},opts.delay);
});
/**end**/
if(_a04.timer){
clearTimeout(_a04.timer);
}
_a04.timer=setTimeout(function(){
var q=t.combo("getText");
if(_a04.previousText!=q){
_a04.previousText=q;
t.combo("showPanel");
opts.keyHandler.query.call(_a03,q,e);
t.combo("validate");
}
},opts.delay);
}