Save method

2 posts, 0 answers
  1. Claudia
    Claudia avatar
    1 posts
    Member since:
    Apr 2017

    Posted 09 May 2017 Link to this post

    GoodMornig,

    I'm using RadSpreadsheet in Aspx page with SpreadsheetDocumentProvider and an Excel file.

    I have create a javascript that call the save method. I write it below

    function exportFile() {
    var spreadsheet = $find("<%= RadSpreadsheet1.ClientID %>");
    spreadsheet.save();
             }

     

    Is there a post save event ( client or server side) that I can Intercept?

    I would like get the file saved on server and send it to client.

    Many thanks

    Claudia

     

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4437 posts

    Posted 11 May 2017 Link to this post

    Hi Claudia,

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

    Marin Bratanov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 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