Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 10, 2017 at 05:43 AM

    any suggestion ?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 14, 2017 at 07:50 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded