Column validator error when rules not present in same file

Hello, i 

Hi, I built a grid with everything working as needed, but now that I started separating the logic, the column validator stopped working 100%. It validates, but then throws an error and doesn’t let me save the cells after editing. I’ll share my structure in the example below.

https://stackblitz.com/edit/vitejs-vite-gwmaafkf?file=src%2Fmain.js

Error:

Uncaught TypeError: Cannot read properties of undefined (reading 'match') at FormValidator2.getErrorMessage () at FormValidator2.validateRules () at FormValidator2.validate () at Edit2.editFormValidate () at NormalEdit2.editFormValidate () at NormalEdit2.endEdit () at InlineEdit2.endEdit () at Edit2.endEditing () at Edit2.endEdit () at Edit2.keyPressHandler ()
FormValidator2.getErrorMessage@
FormValidator2.validateRules@
FormValidator2.validate@
Edit2.editFormValidate@
NormalEdit2.editFormValidate@
NormalEdit2.endEdit@
InlineEdit2.endEdit@
Edit2.endEditing@
Edit2.endEdit@
Edit2.keyPressHandler@
Observer2.notify@
Component2.notify@
Grid2.keyActionHandler@
KeyboardEvents2._this.keyPressHandler@

1 Reply

KM Kishore Muthukrishnan Syncfusion Team August 28, 2025 09:15 AM UTC

Hi Alexis,

 

Greetings from Syncfusion support,

 

Before proceeding with the query, To better assist you with the column validation issue you are experiencing after separating your logic, we kindly request a few additional details. This will help us understand your setup more clearly and provide a more accurate solution:

 

  • Grid Configuration: Share the complete configuration of your grid, including any custom templates and event handlers used.
  • Column Configuration: How you configured columns in your grid.
  • Validation : Provide the details of validation logic you have used in your grid configuration.
  • Video Demonstration: Provide a video showcasing the issue.

 

Regards,

Kishore Muthukrishnan


Loader.
Up arrow icon