This is a migrated thread and some comments may be shown as answers.

Data not bound to cell template

2 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 06 Oct 2015, 08:10 PM

Hello, I am trying to apply a custom (non-kendo) template to a filterable cell.  The project is in angular.  The issues is that when I attempt to apply the custom template, the data from my controller does not seem to be bound at all to the template.  See the attached code:

 Controller:

$scope.header = "Hello";

Grid Configuration:

field: "dataSource",
                    title: "REPORTING_TABLE_COLUMN_TITLE_DATASOURCE",
                    filterable: {
                            cell: {
                                template: function getteamplate(args) {
                                    args.element.replaceWith($templateCache.get("modules/reporting/" +
                                    "retrieve/templates/dataSourceMultiSelect.tpl.html"));
                                },
                                operator: "contains",
                                showOperators: false
                            }
                        }

Template: 

<h1>{{vm.header}}</h1>

Am I missing a compile step or something along those lines?

Thanks, 

Note:  Obviously, these are only code snippets.  

2 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 06 Oct 2015, 08:13 PM
Ah, this is the what compiles in the browser.
0
Nikolay Rusev
Telerik team
answered on 09 Oct 2015, 06:44 AM

Hello Jonathan,

 

First of all I would like to apologize for the delayed response.

 

Indeed this currently is not supported. We will update the code in order to compile Angular templates for the filter cell. The fix will provided in the upcoming intern build release.

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or