I have tried adding categories to the elements where parents are in a category called "Area" and children are in an area called "Test", used the FilterBy(db.ElementCategories.Item("Area")) method on the database and then made the result set the AFTreeView.AFRoot. Unfortunately this shows all children as long as the parent has the "Area" category. I was hoping for a 'visible' or 'hidden' property that I could set iteratively but haven't found anything yet. Any suggestions?
A subset of my hierarchy looks like this:
Process Area 1
Sub Area 1
Sub Area 2
Sub Area 3
Sub Area 4
Sub Area 5
I want the users to be able to select the Sub Areas, but not to see the Tests. Selecting a sub area will dynamically create a separate form with all of the attributes of the tests in the selected sub area; showing the tests on the tree view makes the display more complex than it needs to be.
Any ideas for this? Worst case is to iteratively construct a custom list that doesn't include the "Test" entries and then display that list in a standard .net TreeView, but there must be a better way....
TIA for any help or suggestions.