{"action":"created","issue":{"url":"https://api.github.com/repos/kendo-labs/knockout-kendo/issues/75","labels_url":"https://api.github.com/repos/kendo-labs/knockout-kendo/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/kendo-labs/knockout-kendo/issues/75/comments","events_url":"https://api.github.com/repos/kendo-labs/knockout-kendo/issues/75/events","html_url":"https://github.com/kendo-labs/knockout-kendo/issues/75","id":15939896,"number":75,"title":"Is there an issue with using the detailTemplate option for the kendoGrid binding?","user":{"login":"edhedges","id":825537,"avatar_url":"https://avatars.githubusercontent.com/u/825537?v=3","gravatar_id":"","url":"https://api.github.com/users/edhedges","html_url":"https://github.com/edhedges","followers_url":"https://api.github.com/users/edhedges/followers","following_url":"https://api.github.com/users/edhedges/following{/other_user}","gists_url":"https://api.github.com/users/edhedges/gists{/gist_id}","starred_url":"https://api.github.com/users/edhedges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edhedges/subscriptions","organizations_url":"https://api.github.com/users/edhedges/orgs","repos_url":"https://api.github.com/users/edhedges/repos","events_url":"https://api.github.com/users/edhedges/events{/privacy}","received_events_url":"https://api.github.com/users/edhedges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-06-24T18:31:48Z","updated_at":"2015-04-28T02:18:41Z","closed_at":null,"body":"I have this simple markup\r\n\r\n    <div data-bind=\"kendoGrid: { data: items, scrollable: true, sortable: true, pageable: { pageSize: 3 }, detailInit: itemDetails, detailTemplate: detailTmpl, useKOTemplates: true }\"> </div>\r\n    <script id=\"detailTmpl\" type=\"text/html\">\r\n       <div class=\"grid\"></div>\r\n    </script>\r\n\r\nwith this simple view model\r\n```\r\nvar ViewModel = function () {\r\n    var self = this;\r\n    self.items= ko.observableArray([\r\n        { id: \"1\", name: ko.observable(\"item1\") },\r\n        { id: \"2\", name: ko.observable(\"item2\") },\r\n        { id: \"3\", name: ko.observable(\"item3\") }\r\n    ]);\r\n\r\n    self.itemDetails = function (e) {\r\n        console.log(e);\r\n    };\r\n};\r\n\r\nko.applyBindings(new ViewModel());\r\n```\r\n\r\nWhen I do this my detail opens to this: `[object HTMLScriptElement]`\r\nand if I change detailTemplate option to have single quotes like in the kendo knockout row template examples I get the string that is inside the single quotes\r\n\r\n**Update 1:** I have got it to work when using the first example here: http://docs.kendoui.com/api/web/grid#events-detailInit\r\nbut that being said it would be awesome if the ko templates would work.\r\n\r\n**Update 2:** so after looking here: https://github.com/kendo-labs/knockout-kendo/blob/master/src/knockout-kendoGrid.js it looks like it isn't included I am going to tinker with the source and get back to you guys.\r\n\r\n**Update 3:** So I crudely changed the line here: https://github.com/kendo-labs/knockout-kendo/blob/master/src/knockout-kendoGrid.js#L9 to be this:\r\n\r\n`templates: [\"rowTemplate\", \"altRowTemplate\", \"detailTemplate\"]`\r\nbut now I am getting this in the detail content: `<!--[ko_memo:3febf6201b121b92]-->`\r\n\r\n**Update 4:** there is also this question on StackOverflow pertaining to this issue: http://stackoverflow.com/questions/15310172/how-to-use-detailtemplate-in-knockout-kendo\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/kendo-labs/knockout-kendo/issues/comments/96879786","html_url":"https://github.com/kendo-labs/knockout-kendo/issues/75#issuecomment-96879786","issue_url":"https://api.github.com/repos/kendo-labs/knockout-kendo/issues/75","id":96879786,"user":{"login":"lelong37","id":4691404,"avatar_url":"https://avatars.githubusercontent.com/u/4691404?v=3","gravatar_id":"","url":"https://api.github.com/users/lelong37","html_url":"https://github.com/lelong37","followers_url":"https://api.github.com/users/lelong37/followers","following_url":"https://api.github.com/users/lelong37/following{/other_user}","gists_url":"https://api.github.com/users/lelong37/gists{/gist_id}","starred_url":"https://api.github.com/users/lelong37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lelong37/subscriptions","organizations_url":"https://api.github.com/users/lelong37/orgs","repos_url":"https://api.github.com/users/lelong37/repos","events_url":"https://api.github.com/users/lelong37/events{/privacy}","received_events_url":"https://api.github.com/users/lelong37/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T02:18:41Z","updated_at":"2015-04-28T02:18:41Z","body":"can we get direct native support for toolbar and detailtemplate to use knockout templates as we do with rowTemplate?\r\n\r\n+10"}}