Find and Replace
Open Find and replace and search for notebook. Navigate the two matches or preview a replacement.
For a remotely paginated grid, search all server rows.
Register GridFindPlugin and optionally BatchEditingPlugin. While the grid has focus, Ctrl+F or Cmd+F opens the Find panel. Enter goes to the next match, Shift+Enter goes to the previous match, and Escape closes the panel.
import { BatchEditingPlugin, GridFindPlugin } from '@revolist/revogrid-pro';
grid.plugins = [BatchEditingPlugin, GridFindPlugin];grid.gridFind = { labels: { find: 'Find in loaded orders' },};Find searches loaded rows in the current view, including offscreen cells, and skips hidden columns and loading placeholders. It leaves the active filters in place. With remote pagination, the search covers the loaded page. Supply gridFind.text if your cell renderer displays text from a custom format.
Replace operates on editable text values and skips formulas and read-only cells. Select a range before opening Find to limit the replacement to that range. Preview compares the original and proposed values. Applying the preview submits one batch with your configured validation and persistence. If a batch is already open, finish it before applying a new preview.
Apps with their own toolbar can set mountTo: false and use setSearch(), getMatches(), navigate(), previewReplace(), and applyReplace() on the mounted plugin. Pass the objects returned by previewReplace() into applyReplace() so it can verify that the targets still refer to the previewed records.