Hello Admin,
When I clicked on 'Export' button there is a significant delay before the file was downloaded. I want to show the loading message to the user so that user will understands that some action is going on. So, I added $( ".selector" ).pqGrid( "showLoading" ) on Export button click. I used 'setTimeout' to stop the Loader and used $( ".selector" ).pqGrid( "hideLoading" ) but it was not working as expected.
listeners: [{
"click": function (evt) {
var grid = this;
grid1.pqGrid("showLoading");
setTimeout(function () {
grid.exportData({
url: "CustOrdTable/exportData",
format: $("#export_format").val(),
render: true
})
});
grid1.pqGrid("hideLoading");
}
}]
Note: I think here setTimeout works when we want to export the local data. This is not working with round trip to remote server.
- How we can show the loading message while data is getting ready for download with round trip to remote server?
Could you please suggest me what am doing wrong and if possible show me a demo on
Exporting the Remote data with 'showLoading' and 'hideLoading'.
PS:-I am using ParamQuery Pro v6.2.4 in my ASP.net MVC project.
Thanks in advance,