komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more

Home Page:http://ka-table.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validation based on different column when adding new row

TineFr opened this issue · comments

Hello @komarovalexander

For a table with the columns 'lowerLimit' and 'upperLimit', I would like to implement a validation that checks whether
the value in the upperLimit column is not smaller or equal to the value in the lowerLimit column.
I have the following validation:

image

This works fine when editing an existing row, but when adding a new row, rowData is undefined.
Is there any way to implement this validation?

Thank you for your quick response @komarovalexander !