Pagination with dynamic loading

Hi,
I have a problem with dynamic loading of the pagination.If the rendered rows per page is less than the specified rows per page then the request takes place
continously ie infinite ajax requests.

If the rendered rows per page is less than the specified rows per page
If count of rows is lesser that the page size - it is not a problem - it must not produce any problem.
But if you have provide some total_count value , and server script can’t output the same number of rows - it may produce mentioned error. Grid has info that NN rows must be rendered, and will continue to ask them from server side until data will not be received. You need to be precious with total_count specifing.