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

SearchAvailable Function

Enables the Search action.

#Declaration

TypeScript
export const SearchAvailable: DevExpress.Analytics.Internal.IGlobalSubscribableValue<boolean>

#Parameters

Name Type
newVal 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>