i have below DataGrid columns cellTemplate coded as :
ctAccount(cellElement, cellInfo) {
$('<div>')
.appendTo(cellElement)
.text(cellInfo.data.Other)
.css('cursor', 'pointer')
.on('click', function(event) {
this.dDetail["aaa"] = { store: AspNetData.createStore({
key: "ID",
loadParams: { id: cellInfo.data.GroupID },
loadUrl: this.Svr.urlSuspect + "Group"
})
};
...
...
the problem is 'this' (this.dDetail, this.Svr) is not access by the compiler, because 'this' is referring to 'this: HTMLElement', not refer to my angular project. Error message is
property 'xxx' does not exist on type 'HTMLElement'.
How can i code on this.dDetail and this.Svr ?