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

Grid PopupEdit Template with jQuery Validation...

5 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert Madrian
Top achievements
Rank 1
Veteran
Robert Madrian asked on 23 Nov 2016, 04:25 PM

Hi,

I use ExpressiveAnnotations (https://github.com/jwaliszko/ExpressiveAnnotations) to use annotation-based conditional validation mechanisms in my forms.
(RequiredIf and AssertThat)

Now my question regarding Kendo MVC Grid Validation:

  • is it correct, that Kendo Grid validation is only possible with "KendoValidation" and not with JQuery validation? (also in custom popup editor template?)
  • is it possible to use ExpressiveAnnotations with "KendoValidation"?

robert

5 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 25 Nov 2016, 11:15 AM
Hi Robert,

The KendoValidator can work with custom attributes and it should work with the ExpressiveAnnotations library you are referring to. However, since this is a third party library we cannot guarantee that it will be fully compatible with Kendo validation. I would recommend to test the behavior in your project and ensure that everything works as expected.

Moreover, if you prefer you can use jQuery validation with the Kendo compoents. If you would like more information on using validation with the MVC wrappers please examine the following article.




Regards,
Viktor Tachev
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
0
kevin
Top achievements
Rank 1
answered on 17 Jul 2017, 05:05 PM

Hello Viktor, The example from that page rewrites the logic of validation, is there a way to avoid rewriting the validation logic and make it work with Kendo Validator?

0
Viktor Tachev
Telerik team
answered on 19 Jul 2017, 12:52 PM
Hi Kevin,

There are couple of examples in the article. The first section illustrates how Kendo Validator can be used with built-in DataAnnotations. There are no custom rules applied for the validation in that example.



The second example shows how you can define custom attributes. It also shows how to define custom rules for the Validator component.



Would you elaborate on which example you are referring to? Also please describe the feature you would like to implement. 


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kevin
Top achievements
Rank 1
answered on 19 Jul 2017, 01:38 PM

the first link is fine, basic data annotation works.

The second example however, pretty much rewrites the logic in the validation rule. the keyword here is rewrite.  when you say Kendo Validator can work with custom Attribute, but the example you are showing rewrites the logic in the validator.

I am looking for example that uses kendo custom validation along side with kendo validator without rewriting the logic in jquery.

 

0
Viktor Tachev
Telerik team
answered on 21 Jul 2017, 09:42 AM
Hello Kevin,

The example illustrates how to define custom validation rules. Since this is custom validation there is no predefined rule that would be serialized to the client. Furthermore, validation should be performed on both server- and client-side and this is what the example shows. The first part shows the server-side logic that will validate the data. The second part of the example shows the client-side validation. 


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Robert Madrian
Top achievements
Rank 1
Veteran
Answers by
Viktor Tachev
Telerik team
kevin
Top achievements
Rank 1
Share this question
or