0

How to track tree onCheck event (not onSelect)

asked 2014-08-13 12:21:39 +0800

nirmalmandhata gravatar image nirmalmandhata flag of India
2 3

Requirement: On selecting a tree row(without using checkbox), should check the single row and on selecting the tree checkBox should select all child including current row.

Implemented:
In a method xxxx() called through onSelect event, selecting/de-selecting all the child elements of currently selected row.

Problem: As there is only 1 event that is "OnSelect" which is fired on selecting tree row as well as clicking on tree check box, hence unable to implement the requirement.

(Also tried nonselectableTags="*" property of tree but it does not allow to select the current row and in this case if we can get the current row object (i.e. selected treeitem), then can use mehod YYYY() called through onClick event to select only single row)

Is there any solution to implement the above requirement.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2014-08-14 04:52:54 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Implement a treerenderer where you set an checkbox before your label.(or do all the checkbox need to be inline)
Then you could give the checkbox an eventlistener.

Greetz chill.

link publish delete flag offensive edit
Your reply
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

Follow
2 followers

RSS

Stats

Asked: 2014-08-13 12:21:39 +0800

Seen: 12 times

Last updated: Aug 14 '14

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