Hi Fereydoon,
Thanks for contacting Syncfusion support.
Query: getCurrentViewRecords to get all data in the data grid. It returns all data include changes but it doesn't contain new rows.
By default in EJ2 Grid’s Normal editing, New record will be added top or bottom of the current page. So, getCurrentViewRecords returns the modified and added records perfectly like below image.
But in Batch Editing, new record will be added bottom of the last page. Its default behavior. So only getCurrentViewRecords ( 1st page records) returns the only changed records like below.
New record added in last page (2nd page) of grid like below, when we call getCurrentViewRecords in this page, it will return the added record perfectly like below.
But you can get the all added records, changed records and deleted records using getBatchChanges() method before updating the changes in Grid.
Note: By default in EJ2 Grid editing the newly added row element will be added in the DOM virtually (i.e) which will not reflected to the gridRows. When we save the newly added record then only it will be reflected to the gridRows, so it is not feasible to insert the newly added row element under the specific row.
If still facing the issue, please share below detail then only we provide the appropriate solution as soon as possible.
1. Share complete Grid rendering code.
2. Which type editing you are using in your application.
3. Are you using local data or remote data in your application.
Please get back to us, if you need any further assistance.
Regards,
Thiyagu S