Completed
Last Updated: 16 May 2019 06:05 by ADMIN
Stephen
Created on: 07 Mar 2019 23:43
Category: Spreadsheet
Type: Feature Request
0
save

I have loaded an excel file into the spreadsheet control from our document database. When a user makes changes and clicks the save button I would like to handle a save process back to our document database of the file.

If a save function can be raised I can save to the document database

If a SavAs fucntion can be raised I can prompt the user to create a new version

 

Can the control have these two features added please?

3 comments
ADMIN
Dimitar
Posted on: 14 Mar 2019 09:54
Hello Stephen,

The default functionality is performing the following action: 
this.AssociatedSpreadsheet.SpreadsheetElement.CommandDescriptors.SaveFile.Command.Execute(null);

The document is changed while the user edits so you can directly save it to the database. 

Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Stephen
Posted on: 13 Mar 2019 21:38

Hi Dimitar,

 

That could work is the are the save and save as functions. Will give it a try.

 

Thanks

Stephen 

ADMIN
Dimitar
Posted on: 11 Mar 2019 11:57
Hello Stephen,

It is possible to override the save buttons functionality in a class that inherits RadSpreadsheetRibbonBar. This way you can intercept the buttons click and perform a custom action: 
class MyRibbonUI : RadSpreadsheetRibbonBar
{
    protected override void backstageButtonSave_Click(object sender, EventArgs e)
    {
        // base.backstageButtonSave_Click(sender, e);
        //add your code here
    }
    protected override void buttonSave_Click(object sender, EventArgs e)
    {
        //  base.buttonSave_Click(sender, e);
        //add your code here
    }
}

Is this suitable for your scenario?

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.