Expand/Collapse Issue


Author
Message
Eric Sweet
Eric Sweet
Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)
Group: Forum Members
Posts: 14, Visits: 1
Hi,

For an org chart application, I've added a button with functionality to allow my users to collapse all the "manager" shapes. It's basically just a for loop that flips the decorator toggle state for all shapes that have and incoming and outgoing arrow. The code works, but in some cases "employee" shapes get orphaned outside the collapsed "manager" tree. This only happens in cases where a manager has resources that include other managers (Nested managers). The nested manager's employees are the ones that end up orphaned outside the collapsed tree of managers. Is there something I'm doing wrong, or a better way to do this so that it doesn't happen?

Thanks,
Eric
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search