Hello!
I've found a bug occuring in the following situation …
I'm using a grid with “true scrolling” (scroll: 1) activated.
In normal cases this does work correctly but if the server returns an empty table without any rows, the grid hangs in an endless loop of reloading the grid data.
The JSON data returned from the server for the grid is: {“page”:1,”records”:0,”rows”:[],”total”:0}
The problem seems that the grid variable “ts.p.lastpage” is set to 1 instead of 0 (“total”:0).
I don't know why the grid then tries to load the data in an endless loop, maybe because of “true scrolling”.
I didn't find a real problem in the grid code (v. 3.6.2), but have fixed the problem the following way (todo: cleanup fix):
addJSONData = function(data,t, rcnt, more, adjust) {