Nevron Forum

Expand/Collapse Issue

https://www.nevron.com/Forum/Topic4053.aspx

By Eric Sweet - Thursday, August 26, 2010

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
By Nevron Support - Monday, August 30, 2010

Hi, Eric,

can you send your sample source code to support@nevron.com so that we'll be able to assist you better.