Row not updated with data from server on add (create new)

Hi,

I updated the Syncfusion packages to the latest now version  (19.1.57)
Unfortunately now when I insert a new row into the grid it is not updated with the data from the server (e.g. the id generated and other data).
This worked well in the previous version I used (18.4.32)

I am using a DataManager with RemoteSaveAdaptor like this:
this.internalTicketsGrid.dataSource =
new DataManager(
{
adaptor: new RemoteSaveAdaptor(),
insertUrl: api.hostBase + '/insert/internalticketheader',
removeUrl: api.hostBase + '/delete/internalticketheader',
updateUrl: api.hostBase + '/update/internalticketheader',
json: body.data,
headers: [{ 'x-access-token': api.getToken() }],
});

Can you please help me out?
Regards,


1 Reply 1 reply marked as answer

SK Sujith Kumar Rajkumar Syncfusion Team April 22, 2021 06:06 AM UTC

Hi Walter, 
 
Greetings from Syncfusion support. 
 
We checked the reported problem by dynamically binding remote data adaptor to the Grid’s dataSource property but it was working fine in our end. We have prepared an ASP.NET Core with React sample application based on this for your reference. You can download it from the following link, 
 
 
Note: You can run this sample by opening the project in Visual Studio, restoring the packages and node modules for it and then launching the application. 
 
Since you mentioned this problem is occurring after updating the packages to the new version, we suspect you might be facing the problem due to duplicate packages installed inside your application’s ‘@syncfusion’ package in the node modules folder. This might be invoking different package version files causing the reported problem. So please follow the steps provided below to overcome this,   
   
1.       Delete package.lock.json file from your application.  
2.       Remove the @syncfusion  package folder from the node_modules.  
3.       Use the latest version or specify “*”(Installs the latest packages) for all Syncfusion components in package.json file.  
4.       Then install the new packages.  
 
Once installed the new packages please check if problem is resolved. If problem still persists then please share the following information to validate further on this, 
 
  • Let us know where you are dynamically binding remote data adaptor to the Grid’s data source.
  • Entire Grid code file.
  • Please let us know if you are able to reproduce your problem case in the above shared sample. Or else if possible share us a simple sample to replicate the problem.
 
Regards, 
Sujith R 


Marked as answer
Loader.
Up arrow icon