cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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).

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

any suggestion ?