View Full Version : remove style for a tree node

10 Nov 2009, 4:06 PM

I have two tree panels treeA and treeB.

When i click on a treeA node,it is expanded and the background of that node is highlighted.

and now,when i click on treeB node,it is also expanded and the background is highlighted as expected.

My requirement is:

when i click and expand treeB node , i need to collapse the treeA node ,which i am able to do it successfully.

But i am not able to remove the highlighting of the treeA node when it is collapsed.
It is still shown as selected node even though it is collapsed.

I collapse the tree calling collapseAll() on TreeA. how can i remove the style "x-ftree2-selected" from the node of TreeA after collapse.

Any help?


11 Nov 2009, 2:27 AM
did you can deselect the node with the selectionmodel?

11 Nov 2009, 2:58 PM
Thanks for the solution

added this line