How to save images using the RadSpreadsheet component

0 Answers 29 Views
Spreadsheet
Starshipit
Top achievements
Rank 1
Starshipit asked on 19 Jan 2024, 03:55 AM

I'm using the RadSpreadsheet component and saving it's content following this instructions here:

Telerik RadControls Access the Spreadsheet workbook on the server - Telerik UI for ASP.NET AJAX

 

So, my code behind is like this:

protected void Page_Load(object sender, EventArgs e)
{
    if (Page.IsCallback && Request.Params["__CALLBACKID"] == RadSpreadsheet1.UniqueID)
    {
        Workbook workbook = Telerik.Web.Spreadsheet.Workbook.FromJson(Request.Params["__CALLBACKPARAM"]);
        SaveWorkBook(workbook);
    }

}

 

With this code I'm able to save the spreadsheet just fine. But it's not saving the images I add using the Insert Image button (from telerik component). The images are simply not being passed through.

How can I work around that? Thank you!

 

Rumen
Telerik team
commented on 22 Jan 2024, 03:24 PM

Hi Kevin,

The issue with the images is a missing feature of the Server-side implementation of the Spreadsheet and you can vote for it here: Add support for server import/export of Images and Comments

If you'd like to remove the InsertImage button, you can do that by removing the respective button from the <telerik:SpreadsheetToolbarGroup> collection:

 <telerik:SpreadsheetTool Name="InsertImage" />

You can also use the button removal technique shown in the Full Set of Tools demo.

No answers yet. Maybe you can help?

Tags
Spreadsheet
Asked by
Starshipit
Top achievements
Rank 1
Share this question
or