{"action":"created","issue":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/4","labels_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/4/comments","events_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/4/events","html_url":"https://github.com/tabalinas/jsgrid/issues/4","id":57566325,"number":4,"title":"Deleting rows from table","user":{"login":"psumstr","id":5589281,"avatar_url":"https://avatars.githubusercontent.com/u/5589281?v=3","gravatar_id":"","url":"https://api.github.com/users/psumstr","html_url":"https://github.com/psumstr","followers_url":"https://api.github.com/users/psumstr/followers","following_url":"https://api.github.com/users/psumstr/following{/other_user}","gists_url":"https://api.github.com/users/psumstr/gists{/gist_id}","starred_url":"https://api.github.com/users/psumstr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psumstr/subscriptions","organizations_url":"https://api.github.com/users/psumstr/orgs","repos_url":"https://api.github.com/users/psumstr/repos","events_url":"https://api.github.com/users/psumstr/events{/privacy}","received_events_url":"https://api.github.com/users/psumstr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-13T06:55:55Z","updated_at":"2015-02-13T07:45:47Z","closed_at":null,"body":"Hi,\r\n\r\nCongrats on an excellent project. I've started to use it, but I've hit a roadblock. For some reason, I can't get a row to be deleted from the table. I'm passing the item to be deleted, but nothing seems to happen. For example:\r\n\r\n$(element).jsGrid(\"deleteItem\", {\"Host Name\": \"seattle\"});\r\n\r\nAny ideas of what might be going on, or any examples that you can link to?"},"comment":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/comments/74216635","html_url":"https://github.com/tabalinas/jsgrid/issues/4#issuecomment-74216635","issue_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/4","id":74216635,"user":{"login":"tabalinas","id":3506013,"avatar_url":"https://avatars.githubusercontent.com/u/3506013?v=3","gravatar_id":"","url":"https://api.github.com/users/tabalinas","html_url":"https://github.com/tabalinas","followers_url":"https://api.github.com/users/tabalinas/followers","following_url":"https://api.github.com/users/tabalinas/following{/other_user}","gists_url":"https://api.github.com/users/tabalinas/gists{/gist_id}","starred_url":"https://api.github.com/users/tabalinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabalinas/subscriptions","organizations_url":"https://api.github.com/users/tabalinas/orgs","repos_url":"https://api.github.com/users/tabalinas/repos","events_url":"https://api.github.com/users/tabalinas/events{/privacy}","received_events_url":"https://api.github.com/users/tabalinas/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T07:45:47Z","updated_at":"2015-02-13T07:45:47Z","body":"Hi,\r\n\r\nThank you!\r\nAccording to docs for `deleteItem`, it accepts item|$row|rowNode is the reference to the item or the row jQueryElement or the row DomNode. Since js literal object `{}` is a new object, so the item just cannot be found in the grid data.\r\n\r\nTo make it work you can use a reference to item:\r\n\r\n`$(element).jsGrid(\"deleteItem\", data[0]); // delete first item`\r\n\r\nDocs link: http://js-grid.com/docs/#deleteitemitemrowrownode-promise\r\n"}}