Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.3 KB

File metadata and controls

25 lines (20 loc) · 1.3 KB
layout post
title Find and replace in range in React Spreadsheet component | Syncfusion
description Learn here all about performing find and replace limited to the range in Syncfusion React Spreadsheet component of Syncfusion Essential JS 2 and more.
control Spreadsheet
platform document-processing
documentation ug

Find and replace the text within the selected range of cells

In Syncfusion Spreadsheet, the "Replace All" action by default searches and replaces a text throughout the entire sheet, regardless of the selected range. To limit "Replace All" to only the selected range, you can customize the addressCollection based on the selectedRange in the actionBegin event when the action is beforeReplaceAll.

The following sample demonstrates how to limit the "Replace All" operation to the currently selected range.

{% tabs %} {% highlight js tabtitle="app.jsx" %} {% include code-snippet/spreadsheet/react/find-and-replace-cs1/app/app.jsx %} {% endhighlight %} {% highlight ts tabtitle="app.tsx" %} {% include code-snippet/spreadsheet/react/find-and-replace-cs1/app/app.tsx %} {% endhighlight %} {% endtabs %}

{% previewsample "/document-processing/code-snippet/spreadsheet/react/find-and-replace-cs1" %}