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

iOS Data Form Validation errors

1 Answer 83 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Ana
Top achievements
Rank 1
Ana asked on 12 Oct 2015, 10:16 AM

Hello,

 

I have issue to validate my dataForm on button click in iOS.

For Android we have this method hasValidationErrors (see attached images). But I can't find anything similar for iOS. 

Can you please advise if there is anything that could help me resolve this issue.

 

Best regards,

Ana

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 13 Oct 2015, 12:49 PM
Hello Ana,

In iOS you can use the Validate method of TKDataFormEntityDataSource class. This method can be accessed by using the NativeObject property when using TKDataFormEntityDataSourceHelper class. Consider the sample below:
string[] errors = dataSource.NativeObject.Validate ();

I hope this helps.

Regards,
Jack
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataForm
Asked by
Ana
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or