Author Topic: Dynamically Updating Pagination Option Not Working  (Read 1922 times)

EPM Solutions

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 182
    • View Profile
Dynamically Updating Pagination Option Not Working
« on: March 27, 2019, 02:57:26 pm »
Hello Team,

We want  to update pagination options dynamically but seems it is not working.

For your reference we created a new plunker to test.

https://next.plnkr.co/edit/CNs1PaPbwobqZQzk?preview

In above Plunker we created a new button in toolbar for updating pagination.


Please check and give your suggestion asap.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Dynamically Updating Pagination Option Not Working
« Reply #1 on: March 27, 2019, 06:14:08 pm »
Please use this:

Code: [Select]
listener: function (evt) {
                          var grid = this;

                          grid.pager().destroy();
                          grid.option('pageModel.rPPOptions', [10,30,50,70,90]);
                          grid.option('pageModel.rPP', 30);

                          grid.refreshView();

                          console.log('Pagination Updated')
                        }