RadDataEntry check validation state

2 posts, 0 answers
  1. Jay
    Jay avatar
    2 posts
    Member since:
    Jan 2017

    Posted 17 Jul Link to this post

    Hello,

    I have set up a RadDataEntry for inputting into a custom view model very similarly to the example given in the documentation found here:

    http://docs.telerik.com/devtools/winforms/dataentry/validation

    What I want to be able to do and have not been able to find a clear way of doing so is to check the validation state of the control. I want to check to make sure none of the fields are in an Invalid state (aka have an error) when the user clicks the Save button. If anything has an error, I want to be able to prevent the Save button from being enabled or saving the data until they fix the errors. Is there a built in way or a standard procedure for checking if any errors exist in the Data Entry control?

    Thanks,

  2. Hristo
    Admin
    Hristo avatar
    1018 posts

    Posted 19 Jul Link to this post

    Hello Jay,

    Thank you for writing.

    Validation in RadDataEntry is handled for each of the editors separately. Currently, there is no API to check for the valid state of the whole control. The different editors are using simple data binding and they will update your data source object as soon as the value in the editor changes.

    If you decide to go with the built-in validation you will need to do it similarly to the example in the article: http://docs.telerik.com/devtools/winforms/dataentry/validation.

    I hope this helps. Please let me know if you have other questions.

    Regards,
    Hristo
    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.
Back to Top