Spinner while loading report to viewer
Posted: Tue Jun 13, 2017 3:58 pm
How can i display the spinner in the viewer?
and hide it?
Thanks
JB
and hide it?
Thanks
JB
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
function stiProgress () {
var progressContainer = document.createElement("div");
progressContainer.style.position = "absolute";
progressContainer.style.zIndex = "9000";
progressContainer.style.top = "calc(50% - 400px)";
progressContainer.style.left = "calc(50% - 50px)";
var progress = document.createElement("div");
progressContainer.appendChild(progress);
progress.className = "mobile_designer_loader";
return progressContainer;
}
function showProgress() {
hideProgress();
var rightPanel = document.getElementById("viewerContent");
var progress = stiProgress();
rightPanel.appendChild(progress);
rightPanel.progress = progress;
}
function hideProgress() {
var rightPanel = document.getElementById("viewerContent");
if (rightPanel.progress) {
rightPanel.removeChild(rightPanel.progress);
rightPanel.progress = null;
}
}