ilich / MvcReportViewer

ASP.NET MVC Html Helpers for ReportViewer Control.
MIT License
280 stars 131 forks source link

Progress Bar #139

Closed scurenton closed 8 years ago

scurenton commented 8 years ago

Is there a way to use a progress bar with this? Never used one before, but my page loads and then the report loads. I would like to have a progress bar show that the report is loading

ilich commented 8 years ago

That's what I'd do.

@Html.MvcReportViewerFluent("App_Data/Reports/Cities.rdlc").ProcessingMode(ProcessingMode.Local).Method(FormMethod.Post).LocalDataSource("Cities", Model.FilteredCities).Attributes(new { Height = 900, Width = 900, style = "border: none", @class="report_1" })
$(document).ready(function () {
    console.log("show progress bar");
});
$(".report_1").load(function () {
    console.log("hide progress bar");
});
scurenton commented 8 years ago

Worked like a champ! Thanks for your direction