ui-editable-grid

Implements editable ERP document line grids with Syncfusion batch editing or React Hook Form field arrays.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/Aurelian1974/ERPEnterprise --skill ui-editable-grid-aurelian1974
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ui-editable-grid
Source: https://github.com/Aurelian1974/ERPEnterprise/tree/main/.github/skills/ui-editable-grid
Command: npx skills add https://github.com/Aurelian1974/ERPEnterprise --skill ui-editable-grid-aurelian1974

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @syncfusion/ej2-react-grids, @syncfusion/ej2-react-inputs, react-hook-form, zod, lucide-react.

What problem does it solve? Building editable line-item tables for ERP documents (invoices, purchase orders, quotes) requires choosing between grid libraries and form libraries, wiring inline editors, and keeping line totals, VAT, and grand totals recalculated on every change. ## Core Features & Use Cases - Syncfusion Batch Editing: Inline add/edit/delete of document lines with NumericTextBox editors, column validation rules, and automatic lineTotal recalculation on batch save and cell save. - React Hook Form useFieldArray Fallback: Line rows composed of custom components like SearchableSelect for products and CurrencyInput for prices, with per-line Zod schema validation. - Automatic Totals: Subtotal, VAT, and grand total computed from quantity, unitPrice, and vatRate and rendered with CurrencyDisplay. - Use Case: Build an invoice form where users add product lines, pick products from a searchable dropdown, enter quantities and prices, and see totals update live. ## Quick Start Ask the AI to generate an editable invoice lines grid with product search, quantity and price inputs, and automatic VAT totals using this skill.

Frequently Asked Questions about ui-editable-grid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an editable invoice line grid in React?▼

Use Syncfusion GridComponent with editSettings mode set to Batch for inline add, edit, and delete of lines. Recalculate lineTotal from quantity, unitPrice, and vatRate in the batchSave and cellSaved handlers, then render subtotal, VAT, and total below the grid.

Syncfusion Grid vs React Hook Form useFieldArray for editable tables?▼

Syncfusion batch editing suits simple numeric lines and large tables with built-in virtualization and Excel export. useFieldArray is better when rows need custom components like SearchableSelect or DatePicker, or strict per-field Zod validation.

Can I use SearchableSelect inside a Syncfusion Grid cell?▼

It is possible via custom edit templates but complicated and not recommended. The documented approach is to switch to React Hook Form useFieldArray, where each row naturally hosts SearchableSelect, CurrencyInput, and other custom controls.

How do I validate each line with Zod in a React form?▼

Define a line schema with z.object covering productId, description, quantity, unitPrice, and vatRate, then register fields through useFieldArray paths like lines.0.quantity. This per-line Zod validation works with the useFieldArray approach, not Syncfusion batch mode.

What are the limitations of React Hook Form field arrays for large tables?▼

useFieldArray re-renders registered inputs on form state changes, so performance degrades with 50 or more lines. For large volumes, Syncfusion batch editing is recommended because it provides built-in virtualization.