This is relatively simple, or so I would have thought.
I have a custom Angular directive - I can add it to the DOM with
<custom-directive ng-model="someAngularScopeObject"></custom-directive>
My question, is how can I use this into Kendo Grid column template.
My grid is defined using DOM angular attributes, and the kendo grid k-options are specified in the angular scope.
For column template, how can I bind the row's column dataItem to my custom directives ng-model?
Basically, in the grid's k-options:
columns: [
{ field: "name", title: "Name" },
{ field: "description", title: "Description" },
{ field: "managerName", title: "Manager",
template: function (dataItem) {
//what I care about is dataItem.prop1
return ("<custom-directive ng-model='???????????'>
</custom-directive>");
}
}]
The grid and the grid's data source are on the Angular's controller's scope