{"action":"created","issue":{"url":"https://api.github.com/repos/Teradata/covalent/issues/617","repository_url":"https://api.github.com/repos/Teradata/covalent","labels_url":"https://api.github.com/repos/Teradata/covalent/issues/617/labels{/name}","comments_url":"https://api.github.com/repos/Teradata/covalent/issues/617/comments","events_url":"https://api.github.com/repos/Teradata/covalent/issues/617/events","html_url":"https://github.com/Teradata/covalent/issues/617","id":230797241,"number":617,"title":"DataTable - Search and Pagination- Issued","user":{"login":"leerenold","id":17286159,"avatar_url":"https://avatars3.githubusercontent.com/u/17286159?v=3","gravatar_id":"","url":"https://api.github.com/users/leerenold","html_url":"https://github.com/leerenold","followers_url":"https://api.github.com/users/leerenold/followers","following_url":"https://api.github.com/users/leerenold/following{/other_user}","gists_url":"https://api.github.com/users/leerenold/gists{/gist_id}","starred_url":"https://api.github.com/users/leerenold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leerenold/subscriptions","organizations_url":"https://api.github.com/users/leerenold/orgs","repos_url":"https://api.github.com/users/leerenold/repos","events_url":"https://api.github.com/users/leerenold/events{/privacy}","received_events_url":"https://api.github.com/users/leerenold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-23T18:10:45Z","updated_at":"2017-05-23T18:21:19Z","closed_at":null,"body":"Search content in datatable from second page or after returning \"no results to display\".\r\n\r\nIf you search from first page it is working, but user can search content from any page he/she is in.\r\n\r\nExample from documentation:\r\nData Table with components\r\nPaging Bar / Search Box / Sortable components\r\n\r\nSteps to reproduce : \r\n1. Go to second page in datatable. It has \"donut\" Dessert.\r\n2. Now search \"donut\". \"No results to display\".\r\n\r\n\r\nNote:\r\nI can fix displaying search result in the filter method, but pagination not working properly as I dont have access to pagingEvent during search.\r\n\r\nThanks.\r\n![dt_secondpage](https://cloud.githubusercontent.com/assets/17286159/26369038/b775955a-3fb0-11e7-94c3-a84b58ed2cd9.PNG)\r\n![dt_withsearchfilter](https://cloud.githubusercontent.com/assets/17286159/26369045/ba619ae8-3fb0-11e7-9ab5-d6f74ca12d0f.PNG)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Teradata/covalent/issues/comments/303488419","html_url":"https://github.com/Teradata/covalent/issues/617#issuecomment-303488419","issue_url":"https://api.github.com/repos/Teradata/covalent/issues/617","id":303488419,"user":{"login":"jotatoledo","id":20740204,"avatar_url":"https://avatars0.githubusercontent.com/u/20740204?v=3","gravatar_id":"","url":"https://api.github.com/users/jotatoledo","html_url":"https://github.com/jotatoledo","followers_url":"https://api.github.com/users/jotatoledo/followers","following_url":"https://api.github.com/users/jotatoledo/following{/other_user}","gists_url":"https://api.github.com/users/jotatoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/jotatoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotatoledo/subscriptions","organizations_url":"https://api.github.com/users/jotatoledo/orgs","repos_url":"https://api.github.com/users/jotatoledo/repos","events_url":"https://api.github.com/users/jotatoledo/events{/privacy}","received_events_url":"https://api.github.com/users/jotatoledo/received_events","type":"User","site_admin":false},"created_at":"2017-05-23T18:21:19Z","updated_at":"2017-05-23T18:21:19Z","body":"Nice observation. The fix would be most likely\r\n\r\n```\r\n search(searchTerm: string): void {\r\n    this.searchTerm = searchTerm;\r\n    this.currentPage = 1;\r\n    this.filter();\r\n  }\r\n```"}}
{"actor":{"display_login":"jotatoledo"}}