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

How to apply validation styles widgets?

2 Answers 38 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 03 Aug 2013, 02:04 PM
Kendo Validator toggles class "k-invalid" only on  inputs that are validated. So I can manage the appearence of simple inputs. But how I can style whole widget?
Widget markup usually consists of several inputs and wrappers.  And validation styling should be applied to one of that wrappers. For example to ".k-widget .k-numeric-wrap" for NumericTextBox and so on. But validator does not have appropriate settings or extension points (some set of events for instance) to do that. At least I have not found that neither in docs nor in source code.  It's not complex for me to modify source code of the validator to add this feature. But I don't want to merge my modification into following versions.

Is there some approach to solve problem?

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 Aug 2013, 06:55 AM
Hello Anton,

We have a sample(kendo-validation) that demonstrates how the class can be applied to the widget's wrapper in our GitHub repository. Please check it on this page.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Anton
Top achievements
Rank 1
answered on 07 Aug 2013, 12:10 PM
Thanks Daniel!

...obviously - the only right way to complete the task in our circumstances is MutatorObserver API and some code for compatibility with old browsers
Tags
Validation
Asked by
Anton
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Anton
Top achievements
Rank 1
Share this question
or