Hi
is there any way to highlight( changing the background) the selected directory in the tree structure.
i am using some combination like scrollbar to handle the overflow of tree data.
the following script is working fine to select the directory for the first time but while selecting the another directory it is changing the background color of recently selected but not re-setting the background color of previous selected directory.
var clientAdvTree = CAF.model(“#{activePageBean.clientIds[‘tree’]}”);
var clientAdvIcon= clientAdvTree.getControlId(“icon”);
var td = Element.up(clientAdvIcon);
td.style.backgroundColor = “#8080FF”;
please share your ideas on how to implement it…