Data updated on server not appearing in spreadsheet

Dear Syncfusion Team,

I am using your spreadsheet component as a front-end display, and Firebase as the database to store the date. When updating the data from the spreadsheet, the changes are reflected instantly on the server (Firebase). However, the other way around doesn't seem to work properly. When updating the data from the server, the change isn't reflected on the spreadsheet. If I double-click a cell to edit its value, I will then see the "updated" value but as soon as I click out of that cell to cancel the "edit" it shows the old value. My explanation might not bee so clear, so I re-created the issue in a Stackblitz project and created a dummy DB on Firebase for you to see the issue. Here is a demonstration :

 

Here is the sample used in the demo :

Thank you,
Remy

3 Replies 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team February 8, 2021 10:13 AM UTC

Hi Remy, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported issue and we suspect that you have updated the database value in the spreadsheet model and the UI not refreshed. So, we would suggest you to use the updateCell method to update the value in the cell.  
 
 
Could you please check the above details and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 



RE Remy February 9, 2021 01:33 AM UTC

Hi Sangeetha,

Thank you for your response. I thought this would work out of the box like it does with your grid component (as soon as the data changes on the server, the changes are reflected in the grid). Nonetheless, I coded a logic to detect changes between the new received data and the data that already exists in the spreadsheet to apply the changes manually using updateCell method like you suggested. However, the updateCell method doesn't seem to work on a cell that has wrapping enabled...

In my created() event, one of the lines enables wraping :
this.spreadsheetObj.wrap('A17:E17', true);
The updateCell method doesn't work on this cell. If I comment it out, it works just fine, but then again the text in my cell will overflow outside of the cell instead of breaking to the next line.

Here is a demo : 

Thanks,
Remy


SP Sangeetha Priya Murugan Syncfusion Team February 9, 2021 12:21 PM UTC

Hi Remy, 
 
Thank you for your update. 
 
We have already fixed your reported issue(updateCell not worked for wrap applied cells) in our latest patch release (18.4.42). So, we would suggest you to use the latest version to resolve this issue in your end. 
 
 
Regards, 
Sangeetha M 


Marked as answer
Loader.
Up arrow icon