I have a grid defined in my HTML file including column definitions like the following:
The data source is defined in the controller.
I could not get the angular expression in the ClaimAmount template to work. It does work if I move the column definitions to the controller js file, but I would prefer to have them in the HTML. Is there a way to make this work in the HTML? All the samples I have seen define the columns in script.
Thanks.
<div ng-controller="scoreController as score"> <div kendo-grid="score.grid" k-on-change="score.change(kendoEvent)" k-height="500" k-columns="[ { field: 'CustID', title: 'ID', }, { field: 'QuarterName', title: 'Quarter', }, { field: 'ClaimAmount' , title: 'Claim Amount' , template: '{{dataItem.ClaimAmount | currency}}' }, ]" k-options="score.gridOptions" k-pageable="true" k-scrollable="true" k-selectable="true" k-sortable="true"></div></div>I could not get the angular expression in the ClaimAmount template to work. It does work if I move the column definitions to the controller js file, but I would prefer to have them in the HTML. Is there a way to make this work in the HTML? All the samples I have seen define the columns in script.
Thanks.