Validation Skipped When Pressing Enter During Batch Editing

Hi,


I noticed an issue with batch editing validation on the Syncfusion Grid. You can reproduce it using the demo page:


https://ej2.syncfusion.com/angular/documentation/grid/editing/batch-editing


When navigating between fields using Tab or by clicking, validation works as expected—required fields must be filled before saving. However, if you press Enter while focused on a column with a valid value, the grid allows submission even if other required fields are empty.


For example, in the first demo on the page:


  1. Click "Add" to insert a new row.
  2. Leave id to 0  or enter a valid value.
  3. Press Enter without filling in the other required fields.

The row is added with id = 0, and all required fields are left empty, bypassing validation.


Could you please confirm if this is a known issue or if there's a recommended workaround?


Thanks!


1 Reply

RR Rajapandi Ravi Syncfusion Team August 13, 2025 11:57 AM UTC

Hi Cesar,


Greetings from Syncfusion support.


Based on your query, when you add a new record and press enter key without entering the required field values, the validation messages are not shown. In batch edit mode, the EJ2 Grid is designed to render the edit form for only the currently active cell. This is because batch editing operates on a cell-by-cell basis, rather than editing the entire row at once. When a new row is added, only the first cell enters edit mode initially. If the required fields in other cells are left empty and the user presses the Enter key, the grid will validate only the cell that is currently being edited.


If the value in the active cell satisfies the defined validation rules, the grid will proceed to move the focus to the cell below. If the next cell is editable, it will enter edit mode; otherwise, the focus will simply shift without triggering validation on other cells in the current row. As a result, validation messages for other required fields may not appear immediately during this step-by-step editing process.


However, once the user completes the batch edit and clicks the Update button to save all changes, the grid performs validation. If any cell fails to meet its validation criteria, the grid will immediately display the error message for that cell, preventing the update from proceeding until the valid values are entered. This is the default behavior of the EJ2 Grid Batch Editing.


Regards,

Rajapandi R


Loader.
Up arrow icon