Dhtml tree loading

Hi,

    I am using dhtml tree. It's working fine at more records. But i having problem in this i want one label as loading at the time of tree loading and tree expanding time. For that purpose i used this method:

tree.setOnLoadingStart(func_a);
tree.setOnLoadingEnd(func_b);

function func_a() {
document.getElementById(“b_1”).style.display = “”;
document.getElementById(“b_2”).style.display = “none”;
if (document.getElementById(“a_1”).checked)
}
function func_b() {
document.getElementById(“b_2”).style.display = “”;
document.getElementById(“b_1”).style.display = “none”;
if (document.getElementById(“a_1”).checked)
}

It’s working only once, For example if i maximize one root at that time it’s working, But it’s not working at the time of minimize the tree and also second time tree is maximized. Can you help how to solve this problem

Hi,

items are loaded once. At least, if you don’t reload the tree. Therefore, onLoadingStart and onLoadingEnd event handler are called once for the same branch.

You may set onOpenStart and onOpenEnd event handlers if you want to process items opening