ReportPreviewSettingsBuilder.ProgressBarSettings(Action<ProgressBarSettings>) Method
Allows you to specify settings for the progress bar displayed in the Report Designer Preview.
Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
public ReportPreviewSettingsBuilder ProgressBarSettings(
Action<ProgressBarSettings> configure
)
Parameters
Name | Type | Description |
---|---|---|
configure | Action<ProgressBarSettings> | A delegate method that includes progress bar settings. |
Returns
Type | Description |
---|---|
ReportPreviewSettingsBuilder | A ReportPreviewSettingsBuilder that can be used to further configure the Document Viewer. |
Remarks
The ProgressBarSettings property allows you to set the progress bar position and behavior in Document Preview in Web Reporting.
This property gives you access to the following properties:
- Position
- Gets or sets the progress bar’s position within the Document Viewer‘s visible area.
- KeepOnVisibleArea
- Gets or sets whether the progress bar stays on the visible area when users scroll a web page that contains the Document Viewer.
The following code snippet displays a progress bar in the upper-right corner of the Report Designer preview window:
@{
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
.Height("100%")
.ReportPreviewSettings(
p=>p.ProgressBarSettings(
s=>s.Position =
DevExpress.XtraReports.Web.WebDocumentViewer.ProgressBarPosition.TopRight))
.Bind(new TestReport());
@designerRender.RenderHtml()
}
If you bind the Web Report Designer control to a ReportDesignerModel object, use the ReportPreviewSettings(Action<ReportPreviewSettings>) property instead:
using DevExpress.DataAccess.Sql;
using DevExpress.XtraReports.Web.ReportDesigner.Services;
using DevExpress.XtraReports.Web.WebDocumentViewer;
using Microsoft.AspNetCore.Mvc;
// ...
public class HomeController : Controller {
public IActionResult ReportDesigner(
// ...
var designerModel = reportDesignerModelBuilder
.Report(reportName)
.ReportPreviewSettings(
p => p.ProgressBarSettings.Position = ProgressBarPosition.TopRight)
.DataSources(x => {
x.Add("Northwind", ds);
})
.BuildModel();
return View(designerModel);
}
}