Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
360
Getting error while call function under rowAdded: function (evt, ui)
posted

Hi,

 I am using Iggrid in My Angular 2 project, there is 2 Typescript File (.ts)

1.PostService.ts : as we are using webapi in our project ,this file contain the post,get,put method

2.NewPurchase.ts :this file contain the iggrid.

When i am calling function defined in Postservice.ts, into Newpurchase.ts under the  rowAdded: function (evt, ui) or 

editRowEnded: function () its giving me following error:

TypeError: Cannot read property 'putSightPurchases' of undefined at HTMLTableElement.rowAdded.

Please find attached ScreenShot Here.
NewPurchase
postservice

Thanks