11-29-2024 01:19 AM
I am facing some issue with the selection method of tree control,
In tree control I had added data in three categories - Main parent, sub parent, child only. Now I want that when I select main parent, all the items in tree control should be selected. If i select the sub parent only item inside it should be selected and if child then only child should be selected.
The problem I am facing is that, when I select the Main parent item, only that item is selecting.
with sub parent item things are working fine till now.
but with child items when I want to select the child then only single child not been selected, all the child under that child been got selected, I am not able to select a single child.
Below I am attaching my image
if there any part you want to know please let me know
and please tell the solution if understand the problem.
12-02-2024 02:20 AM
Some comments:
12-02-2024 08:34 AM
Is this what you want? This gets all children of the clicked element and toggles their symbol. I went depth-first first which I could not get to work. Breadth-first was much easier.