Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WebDocumentViewerBuilder.SearchSettings(Action<SearchSettings>) Method

Allows you to specify the Web Document Viewer‘s search settings.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

#Declaration

#Parameters

Name Type Description
configure Action<SearchSettings>

A delegate method that includes search settings.

#Returns

Type Description
WebDocumentViewerBuilder

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

#Remarks

The SearchSettings method allows you to hide search actions or disable asynchronous search for the Web Document Viewer.

This property provides access to the following properties:

SearchEnabled
Allows you to hide the search actions.
UseAsyncSearch
Specifies whether the Web Document Viewer uses asynchronous search.

The following code snippet shows how to hide search actions in an ASP.NET Core application:

cshtml
@{
    var viewerRender = Html.DevExpress().WebDocumentViewer("DocumentViewer")
        .SearchSettings(s => s.SearchEnabled = false)
        .Height("100%")
        .Bind(new TestReport());
    @viewerRender.RenderHtml()
}

Note

If you bind the Web Document Viewer control to a WebDocumentViewerModel object, use the WebDocumentViewerSettingsBase.SearchSettings property instead.

See Also