Skip to content

Commit

Permalink
kb(spreadsheet): adjust code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
P1l3T0 authored Jan 19, 2024
1 parent eeeae07 commit 6e1671c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ res_type: kb
---

## HOW TO

Access the Spreadsheet workbook on the server.

## SOLUTION
Expand All @@ -17,22 +18,22 @@ When pressing the Save button in the Spreadsheet or calling programmatically the
- Use a [Custom Provider]({%slug spreadsheet/data-binding/providers/custom-database-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#
````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"]);
}
}
```
```VB
````
````VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsCallback AndAlso Request.Params("__CALLBACKID") = RadSpreadsheet1.UniqueID Then
Dim workbook As Workbook = Telerik.Web.Spreadsheet.Workbook.FromJson(Request.Params("__CALLBACKPARAM"))
End If
End Sub
```
````



Expand Down

0 comments on commit 6e1671c

Please sign in to comment.