{"action":"created","issue":{"url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/46","labels_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/46/comments","events_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/46/events","html_url":"https://github.com/Knockout-Contrib/KoGrid/issues/46","id":5447970,"number":46,"title":"Refreshing koGrid does not render - requires an extra push + pop call as workaround","user":{"login":"mark--a","id":867266,"avatar_url":"https://avatars.githubusercontent.com/u/867266?v=3","gravatar_id":"","url":"https://api.github.com/users/mark--a","html_url":"https://github.com/mark--a","followers_url":"https://api.github.com/users/mark--a/followers","following_url":"https://api.github.com/users/mark--a/following{/other_user}","gists_url":"https://api.github.com/users/mark--a/gists{/gist_id}","starred_url":"https://api.github.com/users/mark--a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark--a/subscriptions","organizations_url":"https://api.github.com/users/mark--a/orgs","repos_url":"https://api.github.com/users/mark--a/repos","events_url":"https://api.github.com/users/mark--a/events{/privacy}","received_events_url":"https://api.github.com/users/mark--a/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/milestones/3","html_url":"https://github.com/Knockout-Contrib/KoGrid/milestones/2.0%20Release","labels_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/milestones/3/labels","id":167996,"number":3,"title":"2.0 Release","description":"","creator":{"login":"timothyswt","id":1736223,"avatar_url":"https://avatars.githubusercontent.com/u/1736223?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyswt","html_url":"https://github.com/timothyswt","followers_url":"https://api.github.com/users/timothyswt/followers","following_url":"https://api.github.com/users/timothyswt/following{/other_user}","gists_url":"https://api.github.com/users/timothyswt/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyswt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyswt/subscriptions","organizations_url":"https://api.github.com/users/timothyswt/orgs","repos_url":"https://api.github.com/users/timothyswt/repos","events_url":"https://api.github.com/users/timothyswt/events{/privacy}","received_events_url":"https://api.github.com/users/timothyswt/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":29,"state":"closed","created_at":"2012-08-30T19:08:00Z","updated_at":"2012-12-03T22:47:44Z","due_on":null,"closed_at":"2012-12-03T22:47:44Z"},"comments":7,"created_at":"2012-07-05T16:38:51Z","updated_at":"2015-06-17T18:04:59Z","closed_at":"2012-12-03T21:56:02Z","body":"We're working on ASP.Net MVC 3 + knockout-2.1.0 and we're trying to render a koGrid but have an Ajax issue (we think) that is emptying the koGrid instead of updating it.  The grid renders fine initially, but when we try to update the grid, it empties/hides instead.  Debugging with fiddler, the json object returns (with rows that we expect) but the grid goes empty after the call.\n\nWe have a workaround in place that works, but it clunky and not particularly elegant.  Hence our bug/issue report.\n\nSo adding a pop and push to force the refresh makes it all work, the grid updates in the expected way. So javascript chages to:\n\n    self.radioSelectedOptionValue.subscribe(function() {\n        $.get('/Orders/GetProducts', { typeCriteria: \"gender\", id: 1 }, function(data) {\n            self.Products(data);\n            self.Products.push({});\n            self.Products.pop();\n        });\n    }, this);\n\nWe have a nice StackOverflow question going that has more commentary from others at: http://stackoverflow.com/questions/11298437/kogrid-empties-our-grid-instead-of-updating-with-knockoutjs-with-asp-net-mvc-3\n\nObviously, we would prefer the grid to update gracefully without the explicit call to push and pop.\n\nThanks!"},"comment":{"url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/comments/112896953","html_url":"https://github.com/Knockout-Contrib/KoGrid/issues/46#issuecomment-112896953","issue_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/46","id":112896953,"user":{"login":"crissdev","id":822571,"avatar_url":"https://avatars.githubusercontent.com/u/822571?v=3","gravatar_id":"","url":"https://api.github.com/users/crissdev","html_url":"https://github.com/crissdev","followers_url":"https://api.github.com/users/crissdev/followers","following_url":"https://api.github.com/users/crissdev/following{/other_user}","gists_url":"https://api.github.com/users/crissdev/gists{/gist_id}","starred_url":"https://api.github.com/users/crissdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crissdev/subscriptions","organizations_url":"https://api.github.com/users/crissdev/orgs","repos_url":"https://api.github.com/users/crissdev/repos","events_url":"https://api.github.com/users/crissdev/events{/privacy}","received_events_url":"https://api.github.com/users/crissdev/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T18:04:59Z","updated_at":"2015-06-17T18:04:59Z","body":"@nibalejo @RHAD1969 @a3code If possible please post a repro against [2.1.5](https://github.com/Knockout-Contrib/KoGrid/tree/2.1.5/dist) branch and I will reopen this issue. Thanks"}}