Show loading panel when saving Spreadsheet

3 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 13 Jun 2017 Link to this post


    Telerik Product and Version

    UI for ASP.NET AJAX 2017 R2

    Supported Browsers and Platforms

    all browsers supported by Telerik UI for ASP.NET AJAX suite

    Components/Widgets used (JS frameworks, etc.)

    RadSpreadsheet, .NET 4.0/4.5 C#/VB

    This example demonstrates how to show a LoadingPanel when saving the Spreadsheet. 

    The Save method of the Spreadsheet fires a callback to the server, which is not caught by the PageRequestManager and RadAjaxManager. That is why, even though the Spreadsheet is AJAX-enabled, no loading panel is displayed when saving. 

    One workaround for this issue is overriding the save and _onCallbackResponse methods of the RadSpreadsheet and show/hide a Loading panel manually as described in the Show and Hide AjaxLoadingPanel explicitly article.

    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
            var currentLoadingPanel = null;
            var currentUpdatedControl = null;
            var originalFunction =;
   = function () {
                // show the loading panel
                currentUpdatedControl = "<%= RadSpreadsheet1.ClientID %>";
                currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
                // callback start
            Telerik.Web.UI.RadSpreadsheet.prototype._onCallbackResponse = function () {
                // callback ended
                //hide the loading panel
                if (currentLoadingPanel != null) {
                // clean up the global variables
                currentUpdatedControl = null;
                currentLoadingPanel = null;

  2. Daniel
    Daniel avatar
    3 posts
    Member since:
    Jun 2017

    Posted 07 Nov 2017 in reply to Telerik Admin Link to this post

    Is there a way for this script to catch a exception from the CustomSpreadsheetProvider save method? Are there documentation for the other methods of Telerik.Web.UI.RadSpreadsheet.prototype? Perhaps Telerik.Web.UI.RadSpreadsheet.prototype.onErrorResponse?

    Thank you

  3. Steven
    Steven avatar
    2 posts
    Member since:
    Dec 2016

    Posted 18 Aug 2019 in reply to Telerik Admin Link to this post

    When I run this it errors on 

    var originalFunction =;

    stating it can't find .prototype

    Any ideas?

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.