It seems the Angular howto: "Custom editor with Angular JS" is out-dated?
From the howto...
$scope.categoryDropDownEditor =
function
(container, options) {
var
editor = $(
'<input kendo-drop-down-list required k-data-text-field="\'CategoryName\'" k-data-value-field="\'CategoryID\'" k-data-source="ddlDataSource" data-bind="value:'
+ options.field +
'"/>'
)
.appendTo(container);
$compile(editor)($scope);
editor.css(
"visibility"
,
"visible"
);
}
The function creating the cell editor does a $compile on the custom element "editor". However when I follow this approach I noticed that in my own code the link functions in my directives on the custom element execute twice. Upon investigation it seems that since Kendo compiles the TD containing my custom element, my custom element will automatically get compiled so doing a compile within the custom cell editor function is not correct?