This is a migrated thread and some comments may be shown as answers.

Complex validation in Grid

3 Answers 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 03 Mar 2015, 05:01 PM
Hi,

I have the following grid / columns

Left-Operand     Left-Operator     Value      Right-Operator      Right-Operand
                                                        x                    >                            D
        C                       <=                  x                    <=                          D
        B                       <=                  x                     <                           C
        A                       <=                  x                     <                           B
                                                        x                     <                           A

The user needs to fill in the values for A, B, C and D. In such a way that D > C > B > A.

I am using a editable grid with only Left and Right Operands editable, the rest is read only.

How could I enforce such a validation while the user is editing the values?

Thanks 
  

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 05 Mar 2015, 04:58 PM
Hi Bilal,

Kendo UI Validator do not have a build-in validation rule like the one you described. You may consider using custom validation rule.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bilal
Top achievements
Rank 2
answered on 06 Mar 2015, 09:21 AM
Thanks. Can you at least guide me on how to approach such a validation using either a Grid or no grid? 
0
Alexander Valchev
Telerik team
answered on 10 Mar 2015, 06:35 AM
Hi Bilal,

In terms of Kendo UI you should know that the custom validation rule is evaluated for each input in the validated form. In order to mark the validation as successful, the custom validation rule should return true. In order to mark the validation as failed, the custom validation rule should return false.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Bilal
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Bilal
Top achievements
Rank 2
Share this question
or