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

RadDataEntry check validation state

1 Answer 108 Views
DataEntry
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 17 Jul 2017, 07:02 PM

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,

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 19 Jul 2017, 11:13 AM
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.
Tags
DataEntry
Asked by
Jay
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or