Using workbookInitialized in an AngularJS 1.6 project

Posted by: guy.g on 22 October 2018, 3:51 am EST

    • Post Options:
    • Link

    Posted 22 October 2018, 3:51 am EST

    I saw in the documentation that when using Angular you have a workbookInitialized event you can bind to in order to get the reference to the workbook, I can’t find anything like it in the AngularJS directive docs.

    I need to load a workbook from file into gc-spread-sheets directive, how can I do that?

  • Posted 22 October 2018, 11:03 pm EST

    Hello,

    With AngularJS you can assign the data to SpreadJS in controller. Please refer to the blog here:

    https://www.grapecity.com/en/blogs/spreadjs-and-angular-data-binding/

    Thanks,

    Deepak Sharma

  • Posted 25 October 2018, 2:38 am EST

    I am not looking into assigning data to a workbook, I need to load an xlsx file into the workbook.

    Now I found how to do this using plain JS inside an AngularJS app, Does using the GC directives have an advantage over going the native JS way?

  • Posted 25 October 2018, 8:49 pm EST

    Hello,

    Spread.Sheets does not have directives to load xlsx file in workbook. You would need to do that in pure JS only. What you are following is the right approach.

    The list of directives and their attributes can be found here:

    http://help.grapecity.com/spread/SpreadSheets11/webframe.html#angular.html

    Thanks,

    Deepak Sharma

Need extra support?

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

Learn More

Forum Channels