Scroll to Position in Dynamic Panel after changed panel state


#1

Hey there,

Im struggling to find a solution for my issue.

I want to have a “Accordeon” dynamic panel. E.g. When I click on Item number 6 then the dynamic panel 6 slide will be opened and i want to stick the scrollbar exactly to the 6. The lower I get in the dynamic panel the more of a pain it is as if I click 9 I first have to scroll down to see the elements.

I want to have a certain scroll position if a panel state is loaded / opened.

I tried with “Loaded” and a hot spot and the "scroll to widget. This did not work.

Does anybody know the clue and give me the right hint?


#2

Cut & paste your Scroll to Widget action from Loaded to Panel State Changed. Then create a set of conditional cases to scroll to specific locations based on the state. For example,

If State of This equals State9
Scroll to Widget (Anchor Link)
SP_Documents, vertically only
Else If State of This equals State8
Scroll to Widget (Anchor Link)
SP_Documents, vertically only
etc. …

Use widgets in the dynamic panel for the “Anchor Link” references. You may need to add “blank filler space” at the bottom of your dynamic panel if the bottom-most item is shorter than the panel height (eg, to get item 9 scrolled all the way to top of panel.)