{"action":"created","issue":{"url":"https://api.github.com/repos/ceolter/angular-grid/issues/388","labels_url":"https://api.github.com/repos/ceolter/angular-grid/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/ceolter/angular-grid/issues/388/comments","events_url":"https://api.github.com/repos/ceolter/angular-grid/issues/388/events","html_url":"https://github.com/ceolter/angular-grid/issues/388","id":101674217,"number":388,"title":"caught TypeError: Cannot read property 'destroy' of undefined","user":{"login":"kobiv","id":5526599,"avatar_url":"https://avatars.githubusercontent.com/u/5526599?v=3","gravatar_id":"","url":"https://api.github.com/users/kobiv","html_url":"https://github.com/kobiv","followers_url":"https://api.github.com/users/kobiv/followers","following_url":"https://api.github.com/users/kobiv/following{/other_user}","gists_url":"https://api.github.com/users/kobiv/gists{/gist_id}","starred_url":"https://api.github.com/users/kobiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobiv/subscriptions","organizations_url":"https://api.github.com/users/kobiv/orgs","repos_url":"https://api.github.com/users/kobiv/repos","events_url":"https://api.github.com/users/kobiv/events{/privacy}","received_events_url":"https://api.github.com/users/kobiv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T14:48:10Z","updated_at":"2015-08-19T13:41:33Z","closed_at":null,"body":"I am trying to use a virtual paging process while getting the data for every 1000 new rows from indexdb\r\n\r\ni get the following errors caught TypeError: Cannot read property 'destroy' of undefined , the rows are not destroyed they are just added to the grids so when we are doing virtual paging we are adding more and more rows\r\n\r\n  gridOptions = {\r\n    columnDefs: this.columnDefs,\r\n    virtualPaging: true,\r\n    pageSize: 30,\r\n    maxPagesInCache: 1\r\n  };\r\n\r\n      var dataSource = {\r\n        pageSize: 30,\r\n        maxPagesInCache: 3,\r\n        maxConcurrentRequests: 1,\r\n        rowCount: null, //???- not setting the row count, infinite paging will be used\r\n        overflowSize: 50,\r\n        getRows: function(params) {\r\n          console.time(\"ag grid paging\");\r\n          console.log('asking for ' + params.startRow + ' to ' + params.endRow);\r\n          var lastRow = -1;\r\n          var offset = bindingContext.currentPage * bindingContext.pageSize;\r\n\r\n          if (bindingContext.pageSize <= params.endRow - offset) {\r\n            //var page = Math.floor(params.endRow/bindingContext.pageSize);\r\n            bindingContext.currentPage++;\r\n            bindingContext.GetData(bindingContext.BindGrid);\r\n          }\r\n\r\n\r\n          params.successCallback(bindingContext.GlobalCache.data.slice(params.startRow - offset,        \r\n          params.endRow - offset), lastRow);\r\n          console.timeEnd(\"ag grid paging\");\r\n        }\r\n      }\r\n"},"comment":{"url":"https://api.github.com/repos/ceolter/angular-grid/issues/comments/132603202","html_url":"https://github.com/ceolter/angular-grid/issues/388#issuecomment-132603202","issue_url":"https://api.github.com/repos/ceolter/angular-grid/issues/388","id":132603202,"user":{"login":"kobiv","id":5526599,"avatar_url":"https://avatars.githubusercontent.com/u/5526599?v=3","gravatar_id":"","url":"https://api.github.com/users/kobiv","html_url":"https://github.com/kobiv","followers_url":"https://api.github.com/users/kobiv/followers","following_url":"https://api.github.com/users/kobiv/following{/other_user}","gists_url":"https://api.github.com/users/kobiv/gists{/gist_id}","starred_url":"https://api.github.com/users/kobiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobiv/subscriptions","organizations_url":"https://api.github.com/users/kobiv/orgs","repos_url":"https://api.github.com/users/kobiv/repos","events_url":"https://api.github.com/users/kobiv/events{/privacy}","received_events_url":"https://api.github.com/users/kobiv/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T13:41:33Z","updated_at":"2015-08-19T13:41:33Z","body":"hey i created a plunker it took some time\r\n\r\nbut it is an aurelia based plunker \r\n\r\nhttp://run.plnkr.co/plunks/ymskxzpyh5NqmC7eCFq4/#/grid\r\n\r\ntry scrolling and you see the error"}}