tonytomov/jqGrid — Issue #266: Single grid page, refresh problem
Author: gryf
Created: 2012-02-28 11:57:58+00:00
State: open

There is a problem with with data refresh (event 'reloadGrid') in case of jquery Grid configured without pager. It is reproducible in following case:

1. Prepare large enough amount of data, that causes scrollbar to appear on grid widget on server side and serve it with json (i.e. url attribute have defined url to retrieve those data)
2. scroll down a little bit
3. trigger reloadGrid event.

As the result empty grid appears.

cause of this behaviour is wrongly calculated page and scroll offset - in couple of places there is possibility to division by zero. Here is proposed patch for fixing that: https://gist.github.com/1932119