{"action":"created","issue":{"url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/issues/4","repository_url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer","labels_url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/issues/4/comments","events_url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/issues/4/events","html_url":"https://github.com/Arhia/Ext.ux.grid.Printer/pull/4","id":211635257,"number":4,"title":"Updated rendering templatecolumn with associated data.","user":{"login":"VAndAl37","id":1089818,"avatar_url":"https://avatars0.githubusercontent.com/u/1089818?v=3","gravatar_id":"","url":"https://api.github.com/users/VAndAl37","html_url":"https://github.com/VAndAl37","followers_url":"https://api.github.com/users/VAndAl37/followers","following_url":"https://api.github.com/users/VAndAl37/following{/other_user}","gists_url":"https://api.github.com/users/VAndAl37/gists{/gist_id}","starred_url":"https://api.github.com/users/VAndAl37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VAndAl37/subscriptions","organizations_url":"https://api.github.com/users/VAndAl37/orgs","repos_url":"https://api.github.com/users/VAndAl37/repos","events_url":"https://api.github.com/users/VAndAl37/events{/privacy}","received_events_url":"https://api.github.com/users/VAndAl37/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-03T09:21:56Z","updated_at":"2017-03-06T14:05:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/pulls/4","html_url":"https://github.com/Arhia/Ext.ux.grid.Printer/pull/4","diff_url":"https://github.com/Arhia/Ext.ux.grid.Printer/pull/4.diff","patch_url":"https://github.com/Arhia/Ext.ux.grid.Printer/pull/4.patch"},"body":"Updated rendering templatecolumn with associated data."},"comment":{"url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/issues/comments/284404453","html_url":"https://github.com/Arhia/Ext.ux.grid.Printer/pull/4#issuecomment-284404453","issue_url":"https://api.github.com/repos/Arhia/Ext.ux.grid.Printer/issues/4","id":284404453,"user":{"login":"VAndAl37","id":1089818,"avatar_url":"https://avatars0.githubusercontent.com/u/1089818?v=3","gravatar_id":"","url":"https://api.github.com/users/VAndAl37","html_url":"https://github.com/VAndAl37","followers_url":"https://api.github.com/users/VAndAl37/followers","following_url":"https://api.github.com/users/VAndAl37/following{/other_user}","gists_url":"https://api.github.com/users/VAndAl37/gists{/gist_id}","starred_url":"https://api.github.com/users/VAndAl37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VAndAl37/subscriptions","organizations_url":"https://api.github.com/users/VAndAl37/orgs","repos_url":"https://api.github.com/users/VAndAl37/repos","events_url":"https://api.github.com/users/VAndAl37/events{/privacy}","received_events_url":"https://api.github.com/users/VAndAl37/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T14:05:12Z","updated_at":"2017-03-06T14:05:12Z","body":"1. We have two models:\r\n```\r\nExt.define('Post', {\r\n    extend: 'Ext.data.Model',\r\n    fields: [{\r\n        name: 'text',\r\n        type: 'string'\r\n    }, {\r\n        name: 'createdBy',\r\n        reference: 'User'\r\n    }]\r\n});\r\n\r\nExt.define('User', {\r\n    extend: 'Ext.data.Model',\r\n    fields: [{\r\n        name: 'firstName',\r\n        type: 'string'\r\n    }, {\r\n        name: 'lastName',\r\n        type: 'string'\r\n    }]\r\n});\r\n```\r\n\r\n2. Create grid panel with templatecolumn defined by:\r\n```\r\n{\r\n    text: 'Creator',\r\n    xtype: 'templatecolumn',\r\n    tpl: '<tpl for=\"createdBy\">{firstName} {lastName}</tpl>'\r\n}\r\n```\r\n\r\n3. Grid rendered correctly (column \"Creator\" filled).\r\n\r\n4. But in print plugin it rendered with empty templatecolumn.\r\nThis is due to the fact that model.getData(true) returns model.data (createdBy contains no value) with model.getAssotsiatedData().\r\nThus, the missing data are transmitted in tpl column (firstName and lastName of createdBy associations).\r\n\r\nExamples (press Print button):\r\n\r\n1. [Arhia/Ext.ux.grid.Printer](https://fiddle.sencha.com/#view/editor&fiddle/1rfd).\r\n2. [VAndAl37/Ext.ux.grid.Printer](https://fiddle.sencha.com/#view/editor&fiddle/1req).\r\n\r\nPS. Sorry for my english."}}
{"actor":{"display_login":"VAndAl37"}}