Posted 16 August 2019, 1:23 pm EST
Good morning/afternoon
I’m trying to inject data once a spread instance has been rendered based on a saved set of data.
Unfortunately, given a cell instance (getCell) on the active spreadsheet I can’t update the value.
Within the function which updates the sheet view I do:
this.activeSheet.suspendPaint()
this.activeSheet.suspendCalcService()
this.activeSheet.suspendEvent()
this.activeSheet.getCell(row, col).value(newValueGoesHere)
---- or ----
this.activeSheet.setValue(row, col, newValueGoesHere)
this.activeSheet.resumeCalcService()
this.activeSheet.resumeEvent()
this.activeSheet.resumePaint()
this.activeSheet is what comes from getActiveSheet method from your documentation: http://help.grapecity.com/spread/SpreadSheets11/webframe.html#SpreadJS~GC.Spread.Sheets.Workbook~getActiveSheet.html
Note: I’ve no problems setting up style related values (e.g. backColor) so I’m definitely retrieving the right cell.
