Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

GridView - How to show LoadingPanel during export

$
0
0

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();       });   }

See Also:
How to show ASPxLoadingPanel during export


Viewing all articles
Browse latest Browse all 7205

Trending Articles