Can we get the event of Datagrid when it is edited externally from other component?
I have inputs from other component from where when I edit, the datasource gets changed in Datagrid. I need an event to be triggered when there is a change in Datagrid.
Hello,
If you change DataGrid data externally through DataSource|store, you can add an additional data field, for example
FromGrid
, to the DataGrid changes in the onSaving event handler.I created a CodePen sample that you can use as a starting point. Even though it is in jQuery, an Angular approach will be similar.
If this does not fit your requirement, please describe your use case in greater detail. If possible, please create a working sample to demonstrate the issue so that we can analyze and debug it. You can extract one of our demos into a stand-alone example and demonstrate your implementation:
Regards,
Assylbek
I'm still not able to get event when I change value. This is my code
https://codepen.io/acshyam2k/pen/yyLKZNj
I change the value from other component updating the datasource
Hi Shyam,
It appears the code pen has been modified as it shows nothing:
![Clipboard-File-1.png]()
Would you please update it to demonstrate your usage scenario?