cancel
Showing results for 
Search instead for 
Did you mean: 

Scroll to last position inside scrollContainer

dirk_naude
Explorer
0 Kudos
107

Hi

I am on Ep6 sp2

I have a scrollContainer on a HTMLB form. On server side events after the page refresh

the page is scrolled to the top of the page. Setting setScrollingToLastPosition does

not work with a scrollContainer.

How can I scroll to last position within the scrollcontainer?

Accepted Solutions (1)

Accepted Solutions (1)

pravesh_verma
Active Contributor
0 Kudos

Hi Dirk,

Try and have a look to this link.

<b>https://media.sdn.sap.com/javadocs/NW04/SP9/htmlb/com/sapportals/htmlb/ScrollContainer.html#setVerticalScrollPosition(int)</b>

Try these functions in the order:

<b>setReturnsScrollPosition</b>- enable the feature to return the scrolling position

<b>getVerticalScrollPosition</b>- get the vertical scrolling position of this scrollContainer.

<b>setVerticalScrollPosition</b>- set the vertical scrolling position of this scrollContainer.

Similarly you can do for Horizontal Scroll positions if you want to set for Horizontal positions.

I Hope this help's you.

Regards

Pravesh

dirk_naude
Explorer
0 Kudos

Thank you.

That solved it.

Answers (0)