{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/588","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/588/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/588/events","html_url":"https://github.com/primefaces/primeng/issues/588","id":165068428,"number":588,"title":"DataTable - How to Refresh the Data Source","user":{"login":"ammar91","id":7683970,"avatar_url":"https://avatars.githubusercontent.com/u/7683970?v=3","gravatar_id":"","url":"https://api.github.com/users/ammar91","html_url":"https://github.com/ammar91","followers_url":"https://api.github.com/users/ammar91/followers","following_url":"https://api.github.com/users/ammar91/following{/other_user}","gists_url":"https://api.github.com/users/ammar91/gists{/gist_id}","starred_url":"https://api.github.com/users/ammar91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammar91/subscriptions","organizations_url":"https://api.github.com/users/ammar91/orgs","repos_url":"https://api.github.com/users/ammar91/repos","events_url":"https://api.github.com/users/ammar91/events{/privacy}","received_events_url":"https://api.github.com/users/ammar91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T12:31:08Z","updated_at":"2016-07-13T11:46:07Z","closed_at":null,"body":"In my datatable, there is a delete button in each row. When I press, it delete the object from the original data source but there is no change on ui. I'm wondering if there is a way to refresh the data source of table?"},"comment":{"url":"https://api.github.com/repos/primefaces/primeng/issues/comments/232331737","html_url":"https://github.com/primefaces/primeng/issues/588#issuecomment-232331737","issue_url":"https://api.github.com/repos/primefaces/primeng/issues/588","id":232331737,"user":{"login":"ammar91","id":7683970,"avatar_url":"https://avatars.githubusercontent.com/u/7683970?v=3","gravatar_id":"","url":"https://api.github.com/users/ammar91","html_url":"https://github.com/ammar91","followers_url":"https://api.github.com/users/ammar91/followers","following_url":"https://api.github.com/users/ammar91/following{/other_user}","gists_url":"https://api.github.com/users/ammar91/gists{/gist_id}","starred_url":"https://api.github.com/users/ammar91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammar91/subscriptions","organizations_url":"https://api.github.com/users/ammar91/orgs","repos_url":"https://api.github.com/users/ammar91/repos","events_url":"https://api.github.com/users/ammar91/events{/privacy}","received_events_url":"https://api.github.com/users/ammar91/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T11:46:07Z","updated_at":"2016-07-13T11:46:07Z","body":"Below is my code, item indeed removed from my data source but there is no change on ui.\r\n\r\n```\r\n<p-dataTable [value]=\"invoices | invoiceByCompany : selectedSite.id | invoiceByStatus : false\"\r\n                     [responsive]=\"true\"\r\n                     [contextMenu]=\"cm\"\r\n                     expandableRows=\"true\">\r\n<p-column header=\"Actions\" [style]=\"{'width': '90px'}\">\r\n                <template let-currentInvoice=\"rowData\">\r\n                    <a style=\"color:red; cursor:pointer;\" (click)=\"deleteInvoice( currentInvoice)\"><i class=\"glyphicon glyphicon-remove\"></i></a>\r\n                </template>\r\n</p-column>\r\n</p-dataTable>\r\n```\r\n\r\n```\r\ndeleteInvoice(invoice: IInvoiceList): void {\r\n      let invoiceToDeleteIndex: number = 0;\r\n       invoiceToDeleteIndex = this.invoices.findIndex((item: IInvoiceList) => item.userName == invoice.userName);\r\n        this.invoices.splice(invoiceToDeleteIndex, 1);\r\n    }\r\n```"}}
{"actor":{"display_login":"ammar91"}}