{"action":"created","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/4105","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/4105/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/4105/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/4105/events","html_url":"https://github.com/volkanceylan/Serenity/issues/4105","id":385288109,"node_id":"MDU6SXNzdWUzODUyODgxMDk=","number":4105,"title":"QuickFilter items list filtered","user":{"login":"fremar83","id":28645113,"node_id":"MDQ6VXNlcjI4NjQ1MTEz","avatar_url":"https://avatars0.githubusercontent.com/u/28645113?v=4","gravatar_id":"","url":"https://api.github.com/users/fremar83","html_url":"https://github.com/fremar83","followers_url":"https://api.github.com/users/fremar83/followers","following_url":"https://api.github.com/users/fremar83/following{/other_user}","gists_url":"https://api.github.com/users/fremar83/gists{/gist_id}","starred_url":"https://api.github.com/users/fremar83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fremar83/subscriptions","organizations_url":"https://api.github.com/users/fremar83/orgs","repos_url":"https://api.github.com/users/fremar83/repos","events_url":"https://api.github.com/users/fremar83/events{/privacy}","received_events_url":"https://api.github.com/users/fremar83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-28T14:16:51Z","updated_at":"2018-12-11T10:56:18Z","closed_at":"2018-12-07T20:46:37Z","author_association":"NONE","body":"Hi all,\r\n\r\n![image](https://user-images.githubusercontent.com/28645113/49157481-28929c00-f320-11e8-883b-b16d40016e45.png)\r\n\r\nI would like to get only Janet, Nancy, Margaret and Michael is the employee QuicksFilter selection list. Has your can see, the complete list of employees is returned when we edit Alfreds customer row.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/comments/446160431","html_url":"https://github.com/volkanceylan/Serenity/issues/4105#issuecomment-446160431","issue_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/4105","id":446160431,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjE2MDQzMQ==","user":{"login":"minhhungit","id":2279508,"node_id":"MDQ6VXNlcjIyNzk1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/2279508?v=4","gravatar_id":"","url":"https://api.github.com/users/minhhungit","html_url":"https://github.com/minhhungit","followers_url":"https://api.github.com/users/minhhungit/followers","following_url":"https://api.github.com/users/minhhungit/following{/other_user}","gists_url":"https://api.github.com/users/minhhungit/gists{/gist_id}","starred_url":"https://api.github.com/users/minhhungit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhhungit/subscriptions","organizations_url":"https://api.github.com/users/minhhungit/orgs","repos_url":"https://api.github.com/users/minhhungit/repos","events_url":"https://api.github.com/users/minhhungit/events{/privacy}","received_events_url":"https://api.github.com/users/minhhungit/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T10:56:18Z","updated_at":"2018-12-11T10:56:18Z","author_association":"CONTRIBUTOR","body":"Try this one:\r\n\r\n// Create a custom editor, call service with your parameters, keep an eye on `async`\r\n\r\n```typescript\r\n@Serenity.Decorators.registerEditor()\r\n    export class MyTestEditor extends Serenity.Select2Editor<any, any> {\r\n        constructor(hidden: JQuery) {\r\n            super(hidden, null);\r\n\r\n            YourService.CallSomething({yourParameter: \"value\"}, response => {\r\n                response.Entities.forEach((item) => {\r\n                    this.addItem({ id: item.Id.toString(), text: item.Name });\r\n                });\r\n            }, { async: false, blockUI: true });\r\n        }\r\n    }\r\n```\r\n// On Grid.ts\r\n```typescript\r\nconstructor(container: JQuery) {\r\n    super(container);\r\n\r\n    this.addQuickFilter({\r\n        field: fld.YOUR_FIELD,\r\n        type: MyTestEditor,\r\n     });\r\n\r\n    var customFilter = this.findQuickFilter(MyTestEditor, fld.YOUR_FIELD);\r\n    customFilter.value = \"2\";\r\n}\r\n```"}}
{"actor":{"display_login":"minhhungit"}}