{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480","repository_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge","labels_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480/comments","events_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480/events","html_url":"https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480","id":153153462,"number":480,"title":"Dynamic grid columns using repeat.for and ak-template","user":{"login":"rinobatin","id":9003506,"avatar_url":"https://avatars.githubusercontent.com/u/9003506?v=3","gravatar_id":"","url":"https://api.github.com/users/rinobatin","html_url":"https://github.com/rinobatin","followers_url":"https://api.github.com/users/rinobatin/followers","following_url":"https://api.github.com/users/rinobatin/following{/other_user}","gists_url":"https://api.github.com/users/rinobatin/gists{/gist_id}","starred_url":"https://api.github.com/users/rinobatin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinobatin/subscriptions","organizations_url":"https://api.github.com/users/rinobatin/orgs","repos_url":"https://api.github.com/users/rinobatin/repos","events_url":"https://api.github.com/users/rinobatin/events{/privacy}","received_events_url":"https://api.github.com/users/rinobatin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"JeroenVinke","id":2189477,"avatar_url":"https://avatars.githubusercontent.com/u/2189477?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenVinke","html_url":"https://github.com/JeroenVinke","followers_url":"https://api.github.com/users/JeroenVinke/followers","following_url":"https://api.github.com/users/JeroenVinke/following{/other_user}","gists_url":"https://api.github.com/users/JeroenVinke/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenVinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenVinke/subscriptions","organizations_url":"https://api.github.com/users/JeroenVinke/orgs","repos_url":"https://api.github.com/users/JeroenVinke/repos","events_url":"https://api.github.com/users/JeroenVinke/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenVinke/received_events","type":"User","site_admin":false},"milestone":null,"comments":23,"created_at":"2016-05-05T01:58:15Z","updated_at":"2016-05-26T16:12:14Z","closed_at":"2016-05-14T09:33:27Z","body":"Hi,\r\n\r\nI need to render dynamic grid with the data source and column metadata from the database. The column metadata contains information like column display name and data formatting (e.g. date format).\r\n\r\nI am using `repeat.for` and `ak-template` to achieve this because some column templates are too complex  to define in the JS class. Also I would like use to Aurelia's value converter for formatting (rather than `#= kendo.toString(...) #`)  \r\n\r\nExample: https://gist.run/?id=776edd2ced1d59a22175b746938616be\r\n\r\n\r\nHere's the view. The `col` object is not available inside the `ak-template`. Also what is `$this` inside the ak-template? Notice that (3) works but not (2).\r\n```\r\n  <ak-grid k-data-source.bind=\"datasource\">\r\n            <ak-col repeat.for=\"col of columnsMetadata\"  k-title=\"${col.title}\" k-field=\"${col.field}\" >\r\n                <ak-template>\r\n                    <span>col ${col.toString()}</span>\r\n                    <div>\r\n                       (1) ${$this[col.field]} | (2) ${$this[\"UnitPrice\"]} | (3) ${$this.UnitPrice}\r\n                    </div>\r\n                </ak-template>\r\n              \r\n                <ak-template for=\"groupFooterTemplate\">\r\n                    (1) ${$this[\"sum\"]} | (2) ${$this.UnitPrice.sum} \r\n                </ak-template>\r\n                <ak-template for=\"footerTemplate\">\r\n                     (1) ${$this[\"sum\"]} | (2) ${$this.sum} \r\n                </ak-template>\r\n\r\n            </ak-col>\r\n        </ak-grid>\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/comments/221918586","html_url":"https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480#issuecomment-221918586","issue_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480","id":221918586,"user":{"login":"JeroenVinke","id":2189477,"avatar_url":"https://avatars.githubusercontent.com/u/2189477?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenVinke","html_url":"https://github.com/JeroenVinke","followers_url":"https://api.github.com/users/JeroenVinke/followers","following_url":"https://api.github.com/users/JeroenVinke/following{/other_user}","gists_url":"https://api.github.com/users/JeroenVinke/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenVinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenVinke/subscriptions","organizations_url":"https://api.github.com/users/JeroenVinke/orgs","repos_url":"https://api.github.com/users/JeroenVinke/repos","events_url":"https://api.github.com/users/JeroenVinke/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenVinke/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T16:12:14Z","updated_at":"2016-05-26T16:12:14Z","body":"@dpinart https://gist.run/?id=74122c67f160b321f5b95e37726f989f\r\n\r\nI have noticed that `${%field%}` throws an error because that uncompiled template is parsed by aurelia, I need to see if we can fix that"}}
{"actor":{"display_login":"JeroenVinke"}}