New to Telerik UI for ASP.NET AJAX? Start 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
SaveWorkbookmethod. - Parse the
Request.Params["__CALLBACKPARAM"]property value by using the.FromJson()method of the staticTelerik.Web.Spreadsheet.Workbookclass. 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"]);
}
}