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

How to customize validation in pop-up editor?

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 11 Aug 2013, 12:31 PM
Additionally to out of the box Kendo Validator features I need to:
1. style whole Kendo widgets when they are invalid
2. style labels when associated input\widget is invalid
3. and some other features...

I wan't modify Kendo source code so far as possible. So I wrote my own jQuery plugin "xxxValidator" that internally uses (applies) Kendo validator and initializes MutationObserver to react to Kendo Validator activity and perform additional tasks.

Is there "legal" and "elegant" way to attach my customized validator to pop-up\inline editor in the Grid? I look at kendoEditable and the first idea is to "override" "refresh()" function: call original refresh() and then call xxxValidator(). And in this case xxxValidator() should not call kendoValidator  on the container again if it's already present.




1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Aug 2013, 08:09 AM
Hello Anton,

 Up to your questions:

1. Styling a whole invalid widget is currently not supported. Feel free to open a new feature request in our feedback portal.
2. You can style the validation labels using CSS. The relevant CSS classes are: .k-invalid, .k-invalid-msg

If you would like to use your plugin you need to modify the source code. Currently we do not allow this type of customization.

Regards,
Atanas Korchev
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
Anton
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or