The main problem in your code is the following: you can create multiple timers which execute autoReloadGrid
. You cancel only the last created timer inside of ondblClickRow
.
It's important to understand that loadComplete
can be executed multiple times: on paging, sorting and so on. So I recommend you to include call of clearInterval
before setInterval
.