I have two fields min, max in a grid. The validation which I require is, the min and max range should be unique, as per below example, if I'm entering any values between 1 to 200 in next row, it should throw error as The range is already selected and cannot be used. It should allow to select the values after 200 only in next row for min field.
How to check the condition for the ranges here and validate?
sl no | Min | Max |
1 | 1 | 50 |
2 | 51 | 100 |
3 | 101 | 200 |