Thank you for your reply!
I believe the scope of the functions within type script is not working correctly. The assignment of the event handler works, if I do the following:
recordDoubleClick: onInvoiceRecordDoubleClick// this.onInvoiceRecordDoubleClick
});
function onInvoiceRecordDoubleClick(e) {
alert(e.rowData.number);
};
So there is a differnce between using this.onInvoiceRecordDoubleClick which is defined within the class and using the function, which is defined within the scope of onInvoiceDetailsDataBound.
I don't understand why the code for the second level is working but not for the third.
Cheers,
Robert
export class AppComponent {
detailsDataBound(e: any) {
------------
.detailsElement.find("#detailGrid").ejGrid({
dataSource: data,
recordDoubleClick: (e: any) => this.secondleveldbl(e),
detailsDataBound: (e: any) => this.databundeventss(e),
detailsTemplate : "#Gridcontents",
});
e.detailsElement.find(".tabcontrol").ejTab();
};
databundeventss(e: any) {
--------
e.detailsElement.find("#gridinsideother").ejGrid({
allowPaging: true,
dataSource: ejmpdata,
-----------
recordDoubleClick: (e: any) => this.thirdleveldbl(e),
};
secondleveldbl(e:any) {
alert("HiSecond");
};
thirdleveldbl(e:any){
alert("HiThird");
};
|
Thank you very, much!
Again great support!!!
Maybe you could update the example at the Angular section so other developers won't run into the same issue?
You can close this issue.
Cheers,
Robert