Excel export question

3 posts, 0 answers
  1. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 16 Jul 2018 Link to this post

    I have a kendo grid with no datasource specified. Items get added to the grid via a javascript function:


    var grid = $("#MyGrid").data("kendoGrid");



    After items are added to the grid, if I call grid.saveAsExcel(); nothing gets exported and the grid get's cleared out.


    What approach should I use to get the data to export?


    No server call should be needed for this at all. I just want to export the items that have been added via javascript.


  2. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 16 Jul 2018 in reply to Marc Link to this post

    I specified a datasource on the grid with no read operation and a serveroperation as false and the export seems to be working now.
  3. Eyup
    Eyup avatar
    4046 posts

    Posted 17 Jul 2018 Link to this post

    Hi Marc,

    I'm glad you've managed to find a solution for this specific scenario.
    Generally, you can also check the local binding option of the grid:

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top