kendo-labs / angular-kendo

A project to create a robust set of Angular.js bindings for Kendo UI widgets
474 stars 209 forks source link

kendo grid column template and custom editor: angular directives in template not parsed #369

Closed DataPrintGrafik closed 10 years ago

DataPrintGrafik commented 10 years ago

Hi, i use last angular-kendo version (1.0.2) i found a problem with angular directives in kendo grid column template. If i use column template without custom editor (not setting editor property) angular directives inside template are parsed well. but if i use column template AND custom editor angular directives inside template are not parsed when i lost focus from current editing row! simple example: col = { field: 'downloadMode', title: 'Download Mode', template: $("#cboDownloadModeTemplate").html(), editor: $scope.GetDownloadModeColumnEditor }

template: script id="cboDownloadModeTemplate" type="text/x-kendo-template"> {{'UserDetails.DownloadModeDownload' | translate}} /script>

custom editor: $scope.GetDownloadModeColumnEditor = function (container, options) { var name = 'cbo' + options.field;

    $('<input name="' + name  + '" data-bind="value:' + options.field + '"/>')
        .appendTo(container)
        .kendoDropDownList({
            dataTextField: 'Description',
            dataValueField: 'Key',
            dataSource: $scope.downloadModes
        });
};

any suggestions? thanks

mishoo commented 10 years ago

A fix for this will be included in the next Kendo release (Q2 2014), where the Angular bindings are built-in. A quick fix directly in this repository is not possible.