Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
igGrid not showing pages while loading after external button click
posted

Hi,

I am having issues with remote pagination. The pages are not getting displayed properly on click of a button outside of the grid.

Suppose I am having 20 records in total, hence count attribute will be 20, while my server serves first 4 records. On the first time load, the grid loads perfectly fine showing those 4 records and showing 5 pages, that would equate to 20 records total.

Now if I click a button, on whose click event the same method for loading the grid is fired, all the 4 records are shown, but the 5 pages shown at bottom disappears. It assumes only one page, even though the backend API continues to provide 20 records in the count attribute.

Please find at below link the issue that is reproduced.

https://jsfiddle.net/q0b2o68x/

Please let me know when can this issue be fixed?