Skip to Content
avatar image
Former Member

How to Reset Paginator after binding new data in Table (sap.ui.table.Table )

Hi Guys,

I am facing some issue with Table Paginator.

I have Dropdown Box, On change of DropDown value I am binding new data in Table (sap.ui.table.Table).

but the Paginator of table showing me old selected value.

How to reset that Paginator (default to 1) while binding new Data in Table ?

Regards,

Sumit.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 21, 2015 at 07:43 AM

    Hello Sumit,

    How about oPaginator.setCurrentPage(1) as described in the API Documentation here:

    https://sapui5.netweaver.ondemand.com/#docs/api/symbols/sap.ui.commons.Paginator.html#setCurrentPage

    Regards,

    Florian

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2015 at 09:17 AM

    Hi Sumit,

    Yes .setCurrentPage(1) doesn't seem to work 😕

    As an alternative, you could try this approach: JS Bin - Collaborative JavaScript Debugging

    Navigate to any page in the paginator and click on the button placed underneath the table. On button press it will navigate to first page.


    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded