How to catch treeitem that has just been selected or deselected?

asked 2014-12-07 09:22:56 +0800

bkstorm gravatar image bkstorm
38 3

Hi everyone? With onSelect event, I can receive treeitem that has just been selected by method: tree.getSelectedItem(), but if treeitem's just been deselected, how I can receive it?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-07 10:04:10 +0800

Darksu gravatar image Darksu
1991 1 4

Hello bkstorm,

The following url provides a very good example on how to bind the selected item of a tree:


You can enhance the functionality by storing in a variable the old selected value.

Best Regards,


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-12-07 09:22:56 +0800

Seen: 7 times

Last updated: Dec 07 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More