Hello,
I want to implement client-side recursive (de)selection. This works so far, but I have a problem regarding the deselecting:
1) If a user selects a parent node, all children get selected (works fine)
2) If a user deselects a parent node, all children get deselected (works fine)
3) If a children gets deselected, the parent node gets deselected. Here is the problem: The parent node gets deselected, which triggers the children of the parent to be deselected (because of 2.)
How can I determine if an itemDeselected client-side event is triggered because of the user to (un)check an item or if it was triggered internally, because of me setting the selected state?
Thanks!
I want to implement client-side recursive (de)selection. This works so far, but I have a problem regarding the deselecting:
1) If a user selects a parent node, all children get selected (works fine)
2) If a user deselects a parent node, all children get deselected (works fine)
3) If a children gets deselected, the parent node gets deselected. Here is the problem: The parent node gets deselected, which triggers the children of the parent to be deselected (because of 2.)
How can I determine if an itemDeselected client-side event is triggered because of the user to (un)check an item or if it was triggered internally, because of me setting the selected state?
Thanks!