We have a continuously changing data set on the server, with the total number of rows usually increasing but occasionally being reduced. We return the total number of rows in each json response, and use the datasource schema to dynamically update the total.
This works most of the time, but when reducing the number of rows while the grid is scrolled down causes a stack oveflow in the grid component. This only happens for some page sizes and row counts.
This example emulates a server initially offering 125 rows. When the button is clicked the total number of rows on the server is reduced to 47. The grid crashes with a stack overflow if the grid is scrolled down to the last page before clicking the button:
http://jsfiddle.net/GrhJg/
This works most of the time, but when reducing the number of rows while the grid is scrolled down causes a stack oveflow in the grid component. This only happens for some page sizes and row counts.
This example emulates a server initially offering 125 rows. When the button is clicked the total number of rows on the server is reduced to 47. The grid crashes with a stack overflow if the grid is scrolled down to the last page before clicking the button:
http://jsfiddle.net/GrhJg/