MVCGrid.Net icon indicating copy to clipboard operation
MVCGrid.Net copied to clipboard

Abort previous table reload on subsequent reload call

Open zacherkkila opened this issue 7 years ago • 0 comments

Issue: Long running searches can cause reload requests to stack up if typing quickly, often causing an issue where the results of the reload do not match the search. It seems to be that if the first request has not finished, the second will be ignored all together. I was able to see this very consistently on a table with 25k records

Solution: Keep a reference to the previous ajax request and call abort() upon the next request. This will abort the previous request if it is still running allowing only the latest reload to return

zacherkkila avatar Aug 18 '17 19:08 zacherkkila