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

Combine OA OData with EntLib6 VAB and Kendo UI

1 Answer 30 Views
Integration with other products
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernd
Top achievements
Rank 2
Bernd asked on 14 Dec 2013, 12:52 AM
Hello all.

Has anyone yet tried to combine OA with the Validation Applicaion Block (VAB) of the Enterprise Library and give back the results to Kendo UI?

If so I would be glad to read about it. I am stuck with an internal server error while registering the callbacks. So nothing to be debugged. Nothing of my code is called. Most probably I missed something. But what?

So anyone with experience combining those three is welcome. Success ot failure. Doesn't matter.

Thanks
Bernd

1 Answer, 1 is accepted

Sort by
0
Dimitar Tachev
Telerik team
answered on 17 Dec 2013, 05:26 PM
Hi Bernd,

Validating the Telerik OpenAccess ORM persistent objects with the Validation Application Block of the Enterprise Library should be the same as validating any other object - you need the validation attributes or the self validating method in your domain classes.

We are using the same approach for our out of the box Data Annotation Attributes generation - you could find an example of the usage of this validation in the AJAX With Data Annotations example of our Samples Kit. You could base your application on the example replacing the Data Annotation attributes with the ones from the Validation Application Block and the default editors with the Kendo UI ones. I suggest you take a look the Handling Server Side Validation with Kendo UI blog post describing how to handle the validation errors returned from the server.

Regarding the internal server error - I suggest you use our Fiddler tool which will show you the actual error message returned from the server.

If the scenario in the above-mentioned sample application is not applicable for you, could you please provide us with more information about the following details:

1) Are the Data Annotation attributes applicable for your scenario or you need the validation of the VAB from the Enterprise Library?

2) What kind of mapping are you using in your OpenAccess ORM model?
If you use our fluent (code only) mapping you can specify the attributes directly in your domain classes because the code is generated only one time. Otherwise you will need to specify the validation attributes in buddy classes or modify our code generation templates.

3) What kind of technologies are you using in your upper layers (e.g. ASP.Net MVC and Kendo UI extensions for MVC or ASP.Net Web API with Kendo UI Web)?

I am looking forward to your feedback.


Regards,
Dimitar Tachev
Telerik
OpenAccess ORM Q3 2013 simplifies your model operations even further providing you with greater flexibility. Check out the list of new features shipped with our latest release!
Tags
Integration with other products
Asked by
Bernd
Top achievements
Rank 2
Answers by
Dimitar Tachev
Telerik team
Share this question
or