New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Access the Spreadsheet workbook on the server

Updated over 6 months ago

HOW TO

Access the Spreadsheet workbook on the server.

SOLUTION

When pressing the Save button in the Spreadsheet or calling programmatically the .save() client-side method, you can access the Spreadsheet workbook on the server by using one of the following approaches:

  • Use a Custom Provider and the Workbook will be available in the SaveWorkbook method.
  • Parse the Request.Params["__CALLBACKPARAM"] property value by using the .FromJson() method of the static Telerik.Web.Spreadsheet.Workbook class. For example:
C#
protected void Page_Load(object sender, EventArgs e)
{
    if (IsCallback && Request.Params["__CALLBACKID"] == RadSpreadsheet1.UniqueID)
    {
        Workbook workbook = Telerik.Web.Spreadsheet.Workbook.FromJson(Request.Params["__CALLBACKPARAM"]);
    }
}
In this article
HOW TOSOLUTION
Not finding the help you need?
Contact Support