Skip to Content
0

In sap.ui.table.table reset the horizontal scrollbar after refesh.

Mar 10, 2017 at 02:52 AM

58

avatar image

Hi All,

I am using sap.ui.table.table with 10 columns with fixed column width, also their is "Refresh" button on header toolbar. When I scroll horizontal bar till 10th (last) column and press refresh button, the table gets refresh but horizontal scrollbar remains on last column. I want the scrollbar to be reset (position of scrollbar should be extreme left).

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Prachi Chaskar1 Mar 10, 2017 at 05:43 AM
0

any suggestion ?

Share
10 |10000 characters needed characters left characters exceeded
Prachi Chaskar1 Mar 14, 2017 at 07:50 AM
0

var oTable = this.getView().byId("tableId");

var scrollLeft = oTable._iOldScrollLeft;

scrollLeft=0;

oTable._iOldScrollLeft = scrollLeft;

by using this code I could get the position of horizontal scrollbar, but I could not set position of scrollbar.

Share
10 |10000 characters needed characters left characters exceeded