{"action":"created","issue":{"url":"https://api.github.com/repos/SitePen/dgrid/issues/170","labels_url":"https://api.github.com/repos/SitePen/dgrid/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/SitePen/dgrid/issues/170/comments","events_url":"https://api.github.com/repos/SitePen/dgrid/issues/170/events","html_url":"https://github.com/SitePen/dgrid/issues/170","id":4687940,"number":170,"title":"renderArray() does not clear old data","user":{"login":"Leftium","id":381217,"avatar_url":"https://avatars.githubusercontent.com/u/381217?v=3","gravatar_id":"","url":"https://api.github.com/users/Leftium","html_url":"https://github.com/Leftium","followers_url":"https://api.github.com/users/Leftium/followers","following_url":"https://api.github.com/users/Leftium/following{/other_user}","gists_url":"https://api.github.com/users/Leftium/gists{/gist_id}","starred_url":"https://api.github.com/users/Leftium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leftium/subscriptions","organizations_url":"https://api.github.com/users/Leftium/orgs","repos_url":"https://api.github.com/users/Leftium/repos","events_url":"https://api.github.com/users/Leftium/events{/privacy}","received_events_url":"https://api.github.com/users/Leftium/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2012-05-22T10:33:37Z","updated_at":"2015-04-15T14:27:20Z","closed_at":"2013-07-16T22:50:36Z","body":"`renderArray()` does not seem to [clear the old data](http://dojofoundation.org/packages/dgrid/tutorials/hello_dgrid/). For example, calling `renderArray([])` on a simple grid with existing rows does not clear the rows. Even  worse, if the passed array has data, the resulting rows seem to be a corrupted mix of the old and new rows.\n\n**Work-around:** call `refresh()` before `renderArray()`"},"comment":{"url":"https://api.github.com/repos/SitePen/dgrid/issues/comments/93422422","html_url":"https://github.com/SitePen/dgrid/issues/170#issuecomment-93422422","issue_url":"https://api.github.com/repos/SitePen/dgrid/issues/170","id":93422422,"user":{"login":"vxpert","id":11613188,"avatar_url":"https://avatars.githubusercontent.com/u/11613188?v=3","gravatar_id":"","url":"https://api.github.com/users/vxpert","html_url":"https://github.com/vxpert","followers_url":"https://api.github.com/users/vxpert/followers","following_url":"https://api.github.com/users/vxpert/following{/other_user}","gists_url":"https://api.github.com/users/vxpert/gists{/gist_id}","starred_url":"https://api.github.com/users/vxpert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vxpert/subscriptions","organizations_url":"https://api.github.com/users/vxpert/orgs","repos_url":"https://api.github.com/users/vxpert/repos","events_url":"https://api.github.com/users/vxpert/events{/privacy}","received_events_url":"https://api.github.com/users/vxpert/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T14:27:20Z","updated_at":"2015-04-15T14:27:20Z","body":"how can we dynamically generate id of each row.... by default it is taking as 0,1,2,3.. i have to select the row dynmically so needed that\r\n\r\ngrid.select(grid.row(rowid));"}}