We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Hide loading after action result


I like show a waiting popup while I've creating an exel. But when the action result finish, I like hide the waiting pop up.

How can I do it? The waiting is always running.

I prefeer use an ActionResult that an ajax post

I attach an example

Attachment: XlsioExample_eed4cd23.zip

3 Replies

PO Prince Oliver Syncfusion Team May 15, 2017 11:56 AM UTC

Hi Manolo,   
Thank you for contacting Syncfusion support.   
To display a waiting popup while creating an excel, we need to show the waiting popup on button click and perform the AJAX post to the controller ActionResult and use the AJAX success method to hide the waiting popup. Kindly refer to the following code snippet.   
<script >   
    function onClick()   
        var wp = $("#target").data("ejWaitingPopup");   
            type: "POST",   
            url: "XlsIOFeatures",   
            data: { "SaveOption": $('input[type="radio"]:checked').val() },   
            successfunction () {   
                var wp = $("#target").data("ejWaitingPopup");   
Kindly refer to the following link for the sample:http://www.syncfusion.com/downloads/support/forum/130436/ze/XlsioExample-1555051630   

MA Manolo May 15, 2017 03:37 PM UTC

I'm sorry, but in your example the excel is not downloading.

SS Sridhar Sukumar Syncfusion Team May 16, 2017 07:09 AM UTC

Hi Manolo, 


Excel file could not be downloaded directly in client machine using Ajax call. However, this can be achieved by a workaround by saving the Excel document in the disk and downloading it. Please find the below code sample to download the Excel file. 


Code Example: 


string fullPath = Path.Combine(Server.MapPath("~/temp"), file); 

byte[] fileByteArray = System.IO.File.ReadAllBytes(fullPath); 


return File(fileByteArray, "application/vnd.ms-excel", file); 


We have prepared the sample for the same. The sample can be downloaded from following link. 


Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/XlsioExample994700578 


Please let us know if you have any concerns. 



Sridhar S. 

SIGN IN To post a reply.
Live Chat Icon For mobile
Up arrow icon