Monday, April 21, 2008

Synchronise Accordion Panes

The problem: If you use accordion panes and display the Relationship map, the Property pane does not remain sychronised if you navigate to another object.

If you do this in explorer, it does. Why ? Because explorer uses a bit of code to glue the events together. I.E. Here is the description from the HTMLFragment object that explorer uses:

Browser - tree model browser accordion bridge
Allows an accordion container to use children that depend on ShowFrameEvents for display. This listens for and captures ShowFrameEvents. After a Child of an accordion pane is loaded, this publishes the last ShowFrameEvent captured for consumption by the accordion pane children.

Fortunately it is easy to replicate this functionality. Simply add the Explorer's HTMLFragment object as another SolutionElement into the DocumentShell that contains the accordion pane. i.e. Search for "Browser - tree model browser accordion bridge" and add it to the list. That is it !

If you were energetic you could make your own by copying the HTMLFragment object so it does not reply on the Explorer - which could change in a future version.


No comments: