Setting up the bulk editor
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.
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#