In my TypeScript file for class A, I am encountering an issue with the Kendo TreeList code. I am trying to call a function from the Kendo template.
export class A{
drillDownDataSource: any;
constructor() {
this.GetStatutoryIncomeGridViewData();
}
GetStatutoryIncomeGridViewData() {
$.ajax({
type: 'POST',
url: 'Controller/Action/',
data: stfilterData,
success: function (data) {
$("#grid").kendoTreeList({
dataSource: data,
columns: [
{ field: "Transaction1", template: kendo.template("#=FormatNumberToEn(Transaction1)#").bind(this) }
]
});
});
}
public FormatNumberToEn(value) { }
}
An error is occurring where it states "
function FormatNumberToEn is undefined
"