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
Thanks
Hello Yogesh,
From what I can see 'PostService' element is not present in the 'this' scope of the 'rowAdded' event handler. That is why the 'putSightPurchases' is not available as well. This is due to the 'this' scope changing within a function depending on how it is called.
I would suggest based on the information you have provided is to either store the 'this' scope you need into a variable or using a different method of selecting the 'PostService'.
It would greatly help if you need more assistance to provide us with a sample that we could see more clearly how things are handled.
Regards,Svetoslav Krastev,Infragistics
Hello Svetoslav ,
Thanks for reply.
Issue is solved, I have added:
1 )Insert Under the ('iggridupdatingrowadded', function (evt, ui) { }
2).Update Under the ('iggridupdatingeditrowended', function (evt, ui){]
3 Delete under ('iggridupdatingrowdeleting', function (evt, ui) {}
another issue currently ,i am facing,
1).if i have click on cell for edit and click on cancel button without editing any field, still ('iggridupdatingeditrowended', function (evt, ui){} event get fired , it should get fire only when i would click on Done button.