Hello,
I am using Kendo UI Web v2013.1.614 release with jQuery 1.9.1 and i have problems with header template in kendo grid.
Here is declaration of grid:
The first problem i faced was that all templates stuff like '#=runTemplate()#' and so on doesn't work in header template. In item template it works ok.
So i declared inline template for header but haven't succeeded in binding it to something.
I tried several context like parent(), parent().parent(), $root and some custom bindings but nothing worked, looks like this is bug.
Best regards,
Alexander
I am using Kendo UI Web v2013.1.614 release with jQuery 1.9.1 and i have problems with header template in kendo grid.
Here is declaration of grid:
<
div
data-role
=
"grid"
data-sortable
=
"true"
data-scrollable
=
"false"
data-sortable
=
"{ allowUnsort: false }"
data-pageable
=
"{ info: false }"
data-bind
=
"source: drivesSource"
data-columns='[
{"field": "selected", "title": " ", "width": "auto", "sortable":false,
"template": "#=runTemplate(\"drive-select-template\", data)#",
"headerAttributes": {style: "text-align: right"},
"headerTemplate": "<input data-bind=\"checked: parent().parent().checkAll\"
class=\"grid-checkbox\" type=\"checkbox\" title=\"@Localization.Tooltips.Select_all\" />"} .....
]'>
</
div
>
The first problem i faced was that all templates stuff like '#=runTemplate()#' and so on doesn't work in header template. In item template it works ok.
So i declared inline template for header but haven't succeeded in binding it to something.
I tried several context like parent(), parent().parent(), $root and some custom bindings but nothing worked, looks like this is bug.
Best regards,
Alexander