Profile Picture

Automatic Resizing After Show/Hide Subtree Decorator Click

Posted By Eric Sweet 14 Years Ago

Automatic Resizing After Show/Hide Subtree Decorator Click

Author
Message
Eric Sweet
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 14 Years Ago
Posts: 14, Visits: 1
Hi,

I'm trying to make use of your example in the Document Object Model - Decorators - Show/Hide Subtree Decorators sample. I've integrated much of the code from your sample into my project, and the decorators work, but the chart does not resize like yours does when I expand or collapse one or any of the trees. Is there an event I need to subscribe to that I'm overlooking? Can you point me to the particular sub or code section that triggers this behavior?

The only major differences between your code and mine is that I'm using table shapes and tipover layout.

Thanks for any help,
Eric

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Eric,

In order to achieve this behavior you should apply the layout each time a subtree is shown/hidden. Click on the View Source tab of the Show/Hide Subtree Decorator example to see how to do this in code. Pay more attention to the NodePropertyChanged event handler (it is called when a subtree visibility has changed) which starts a timer and when this timer's tick event is fired, the timer applies the layout.



Best Regards,
Nevron Support Team



Eric Sweet
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 14 Years Ago
Posts: 14, Visits: 1
Thanks, I missed adding the AttachToEvents method call, once I did it worked.

Appreciate the help.
Eric



Similar Topics


Reading This Topic