Hi,
I have been using the attached example psf treeview control that originally came for this forum to display an AD forest. I really like how quick it renders compared to other examples I have found.
However, one thing I would like to improve, but have not worked out how to do this, is to only show + signs for OU's that have children. Is there any way to make this example do this?
Any help on doing this would be greatly appreciated.
Pete
How to show only + on OU's with children
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- PGomersall
- Posts: 138
- Last visit: Thu Apr 11, 2024 7:51 am
- PGomersall
- Posts: 138
- Last visit: Thu Apr 11, 2024 7:51 am
Re: How to show only + on OU's with children
Yes jvierra that is what I want, but the psf I attached in the initial post does not do that; it has a + on all OU's including those without children.
What I need is how to make it work like you say it should. In the below image the AD-Tree form is the one I am using but as you see there are a + on every OU. The other example is another OU adtree psf that is also on your site here, it works much slower but it does show the correct + on the OU's and not on those with no children.
I wonder if you could take a look at the AD-Tree.psf I attached on a domain and try and see what the issue is? I am sure it is to do with how the nodes are added but I am not sure how to fix it. Regards,
Pete
What I need is how to make it work like you say it should. In the below image the AD-Tree form is the one I am using but as you see there are a + on every OU. The other example is another OU adtree psf that is also on your site here, it works much slower but it does show the correct + on the OU's and not on those with no children.
I wonder if you could take a look at the AD-Tree.psf I attached on a domain and try and see what the issue is? I am sure it is to do with how the nodes are added but I am not sure how to fix it. Regards,
Pete
- PGomersall
- Posts: 138
- Last visit: Thu Apr 11, 2024 7:51 am
Re: How to show only + on OU's with children
jvierra ,
I am sorry but we are misunderstanding each other.
I see your image and I see how it is supposed to work. That image is like the right side of the image in my last post - how it should work.
If you look at the left side of my image - this is clearly not working like the right side.
Take a look at the OU Builtin in the left image - it has no child OU but it shows a plus.
If I click that OU it does "expand" and the + disappears, is that because the code is not trying to enumerate the branch until it is clicked, and that is the reason it it much faster?
The left side was created using the originally attached psf. I was hoping that we could work to find what was broken in it if opening and running it on a domain joined computer to see what it renders in the treeview.
Pete
I am sorry but we are misunderstanding each other.
I see your image and I see how it is supposed to work. That image is like the right side of the image in my last post - how it should work.
If you look at the left side of my image - this is clearly not working like the right side.
Take a look at the OU Builtin in the left image - it has no child OU but it shows a plus.
If I click that OU it does "expand" and the + disappears, is that because the code is not trying to enumerate the branch until it is clicked, and that is the reason it it much faster?
The left side was created using the originally attached psf. I was hoping that we could work to find what was broken in it if opening and running it on a domain joined computer to see what it renders in the treeview.
Pete
Re: How to show only + on OU's with children
It is not broken. That is how the TreeView works. There is no way to change that behavior. You would have to biuld a custom control or manually do all of the painting to change that behavior.