How to save radspreadsheet on server

2 posts, 0 answers
  1. JF
    JF avatar
    1 posts
    Member since:
    Jul 2017

    Posted 06 Nov Link to this post

    var $ = $telerik.$;
     var spreadsheet = $find("<%= RadSpreadSheet1.ClientID %>");
    spreadsheet.save();

     

     

    This code is not working.  No error generated and the spreadsheet is never saved, tough saveAsExcel is working as advertised.

     

    Any hint someone?

  2. Rumen
    Admin
    Rumen avatar
    13261 posts

    Posted 09 Nov Link to this post

    Hello,

    You could create a custom content provider where you need to implement the Save method: http://docs.telerik.com/devtools/aspnet-ajax/controls/spreadsheet/data-binding/providers/custom-database-provider.

    Alternatively, as you have already noticed, you can save the file on the client by using the underlying Kendo Spreadsheet widget directly with JavaScript: http://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet#methods-saveAsExcel. Something like:

    $telerik.$("#<%=RadSpreadsheet1.ClientID%>").data("kendoSpreadsheet").saveAsExcel();



    Regards,
    Rumen
    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