All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

WebDocumentViewerBuilder.ProgressBarSettings(Action<ProgressBarSettings>) Method

Provides access to the Web Document Viewer's progress bar settings.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

Assembly: DevExpress.AspNetCore.Reporting.v20.1.dll

Declaration

public WebDocumentViewerBuilder ProgressBarSettings(
    Action<ProgressBarSettings> configure
)
Public Function ProgressBarSettings(
    configure As Action(Of ProgressBarSettings)
) As WebDocumentViewerBuilder

Parameters

Name Type Description
configure Action<ProgressBarSettings>

A delegate method that includes progress bar settings.

Returns

Type Description
WebDocumentViewerBuilder

A WebDocumentViewerBuilder that can be used to further configure the Document Viewer.

Remarks

The ProgressBarSettings property allows you to set the Web Document Viewer's progress bar position and behavior.

This property provides access to the following properties:

  • Position - specifies the progress bar's position.
  • KeepOnVisibleArea - specifies if the progress bar retains its position when users scroll the Document Viewer's webpage.

Examples

The code sample below illustrates how to change the progress bar's position and reaction to web page scroll events in ASP.NET Core applications.

@(Html
    .DevExpress()
    .WebDocumentViewer("DocumentViewer")
    .Height("1000px")
    .ProgressBarSettings(settings => {
        // Place the progress bar in the Document Viewer's bottom left corner.
        settings.Position = DevExpress.XtraReports.Web.WebDocumentViewer.ProgressBarPosition.BottomLeft;
        // Make the progress bar stay within the visible area when users scroll a web page that contains the Document Viewer.
        settings.KeepOnVisibleArea = false;
    })
    .Bind(Model.Report))
See Also