I'm trying to use template to customize the columns of the grid, and to format the data that will be displayed inside columns. I want to setup this parameter inside my code together with rest of the column parameters, for example...
public gridColumns:any[]=[{
field:"ProductName",
title:"ProductName",
template:'<img src="test.png"/>'
}];
However, I noticed that in Kendo UI Angular TypeScript documentation there is no template parameter like it was before the case with AngularJS.
[{
"Field": "CreateDate",
"Title": "Creation Date",
"Width": 75,
"Template": "#= (data.CreateDate == null) ? ' ' : kendo.toString(kendo.parseDate(data.CreateDate, 'yyyy-MM-dd'), 'dd.MM.yyyy') #"
}]
I guess the main question is: can this be done ? If so, what am I doing wrong.