We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

getBatchChanges() doesn't return last row without double click

Thread ID:

Created:

Updated:

Platform:

Replies:

151100 Jan 30,2020 05:35 PM UTC Jan 31,2020 01:42 PM UTC Angular - EJ 2 3
loading
Tags: Grid
Suman Kumar
Asked On January 30, 2020 05:35 PM UTC

the problem is as follow:

1) i edit 1st row , then double click the second row to edit, i can see the value returned in console using console.log
2) i edit 2nd row, then do not double click but just a single click, the second row is not returned.
3) to return the edited in (2), i have to double click on grid




Balaji Sekar [Syncfusion]
Replied On January 31, 2020 01:08 PM UTC

Hi Suman, 
 
Thanks for contacting Syncfusion support. 
 
Query : i edit 2nd row, then do not double click but just a single click, the second row is not returned. to return the edited in (2), i have to double click on grid 
 
We were unable to reproduce the reported problem at our end and created a simple sample for your reference. In that sample, we have showed the batchChangesRecords in console in the cellSaved event. 
By default cellSaved event triggers each time when the cell is saved. Please refer the below sample and code example for more information. 
 
 
 
App.component.html 
<ejs-grid #grid [dataSource]='data' [selectionSettings]='selectionOptions'[editSettings]='editSettings'  
    height='273px'(cellSaved)='cellSaved($event)'> 
------ 
  </ejs-grid> 

App.component.ts 
 
export class AppComponent { 

    @ViewChild('grid', {static: false}) 
    grid: GridComponent; 
     public editSettings: EditSettingsModel; 
    public data: Object[]; 
------- 

    public ngOnInit(): void { 
        this.data = hierarchyOrderdata; 
         this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode:'Batch' }; 
-------- 
    } 
// triggers each time when the cell is saved (Batch Edit only) 
    cellSaved(args){ 

      console.log(this.grid.getBatchChanges()) 
    } 
 
 
 
If you are still faced the problem please share the below details to validate further and provide a better solution. 
 
  1. Share the full grid code and versions of all the syncfusion packages you have used.
  2. If possible share the issue reproduce sample.
  3. Share the details, when ( eventName ) you have showed the batchChangedRecords in console.
 
Regards, 
Balaji Sekar.      


Suman Kumar
Replied On January 31, 2020 01:36 PM UTC

Thank you balaji. This worked flawlessly. I used the wrong event  "oncelledit" earlier.

Balaji Sekar [Syncfusion]
Replied On January 31, 2020 01:42 PM UTC

Hi Suman, 
  
We glad that your issue has been fixed.  
  
Please get back to us if you require further other assistance from us. 
  
Regards, 
Balaji Sekar.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon