spread.fromJson not workin after upgrate to 12.0.0.0 from 11.0.0.1

Posted by: arnoldbendaa on 3 April 2019, 10:11 am EST

  • Posted 3 April 2019, 10:11 am EST

    Hello.

    I upgrade my source code from 11.0.0.0 to 12.0.0.0.

    But the spread.fromJson function not working.

    it works well in 11.0.0.0 .But it is not working in 12.

    the json is same string both 11 and 12.

    This is my code.

    var spread = new GC.Spread.Sheets.Workbook(document.getElementById('spreadsheet'));
                       var data = JSON.parse(jsonForm);
                        self.spread.fromJSON(data.spread);
    
    

    This is jsonForm string.

    {“spread”:{“version”:“11.0.0”,“grayAreaBackColor”:“#FCFDFD”,“sheets”:{“Sheet1”:{“name”:“Sheet1”,“theme”:“Office2007”,“data”:{“dataTable”:{“4”:{“1”:{“value”:“tertreter”}},“8”:{“7”:{“value”:“tretertert”}},“12”:{“2”:{“value”:“tretert”}}},“defaultDataNode”:{“style”:{“themeFont”:“Body”}}},“rowHeaderData”:{“defaultDataNode”:{“style”:{“themeFont”:“Body”}}},“colHeaderData”:{“defaultDataNode”:{“style”:{“themeFont”:“Body”}}},“selections”:{“activeSelectedRangeIndex”:-1,“length”:0},“frozenlineColor”:“rgba(255, 255, 255, 0)”,“allowCellOverflow”:false,“rowHeadervisible”:true,“index”:0}}}}

  • Posted 4 April 2019, 4:53 am EST

    Hi,

    We are sorry but we are unable to replicate the issue at our end. Everything seems to be working as expected. Could you please have a look at the attached sample and let us know if we are missing something in order to replicate the issue? Also could you please explain some more about the exact issue that you are facing?

    Regards

    spreadRefresh.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels