Skip to main content
A newer version of this page is available.
All docs
V20.2

SearchAvailable Function

Enables the Search action.

Declaration

export var SearchAvailable: ko.Observable<boolean>

Returns

Type Description
boolean

True to enable the Search action; otherwise, false.

Remarks

Set the SearchAvailable property to false to disable the action that displays the Search panel.

You can handle the ASPxClientWebDocumentViewer.CustomizeElements event and specify the SearchAvailable setting to remove the Search action in the Document Viewer:

<dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server">
    <ClientSideEvents CustomizeElements = "function(s, e) {
        DevExpress.Reporting.Viewer.Settings.SearchAvailable(true);}" />
</dx:ASPxWebDocumentViewer>