Easyui tree

1.添加加载进度条

$("#treePart").find("#tree").tree({
  onBeforeLoad: function (node, param) {//onBeforeLoad,在请求载入数据之前触发,返回false将取消载入。
                $("<div class=\"datagrid-mask\"></div>").css({ display: "block", width: "100%", height: "100%" }).appendTo("#tree");
                $("<div class=\"datagrid-mask-msg\"></div>").html("正在处理,请稍待。。。").appendTo("#tree").css({ display: "block" });
            }
});

 

posted @ 2013-04-07 11:24  心存善念  阅读(1992)  评论(0编辑  收藏  举报