This video is available to students only

How to Bulk Edit Data With React Query Builder

Using React Query Builder for a completely different purpose

Now we're going to use a query builder for a different purpose: bulk editing. This is useful when your data grid is updateable and you want to be able to define many changes at once.

Grid configuration#

First we'll add a selection column to the data grid so users can determine exactly which rows they want to update. Make sure to set the rowSelection prop to "multiple" so we can select multiple rows. We'll also need to capture the grid API in a state variable for later use.

Query builder configuration#

This lesson preview is part of the Building Advanced Admin Reporting in React course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

Unlock This Course

Get unlimited access to Building Advanced Admin Reporting in React, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course Building Advanced Admin Reporting in React