Automatic Resizing After Show/Hide Subtree Decorator Click


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,

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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
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
Thanks, I missed adding the AttachToEvents method call, once I did it worked.

Appreciate the help.
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