When you export a grid with a lage amount of data, you might want to show the LoadingPanel during exporting. To do so, handle the button's client-side Click event to:
1) Show the loading panel;
2) Perform an ajax request to the server to export the grid;
3) Hide the loading panel on success and submit the form to attach the exported document to the response.
[JScript]function OnClick(s, e){ $.ajax({ url: '@Url.Action("CallbackExport", "Home")', type: "POST", data: $("#form").serialize(), beforeSend: (function(data){ LoadingPanel.Show(); }) }).done(function(data){ LoadingPanel.Hide(); $("#form").submit(); }); }