How to apply validation styles widgets?

3 posts, 1 answers
  1. Answer
    Anton
    Anton avatar
    8 posts
    Member since:
    Aug 2013

    Posted 03 Aug 2013 Link to this post

    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. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 07 Aug 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Anton
    Anton avatar
    8 posts
    Member since:
    Aug 2013

    Posted 07 Aug 2013 Link to this post

    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
Back to Top