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

View Server Side Validation Messages

1 Answer 180 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
EGOLF
Top achievements
Rank 2
EGOLF asked on 05 Sep 2017, 02:53 PM
Hello friends.
I am developing an application where client side uses Kendo UI plus JSDO components and the server side uses Progress Application Server for OpenEdge (PASOE). The application is entirely based on OERA best practices.
I'm using a DataGrid with server side pagination for browsing through a CRUD records and editing is done on a KendoUI popup form. So far so good.
Now I need your help to capture and display validation messages generated on the server side (EntityBusiness).
The response of the PUT, POST, and DELETE HTTP requests in which validation errors occur contains the validation messages, I have already confirmed this when monitoring requests with the browser development components.
How do I display these messages in the Kendo UI form? Better still, if possible, display each message next to the field with the invalid value.

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 07 Sep 2017, 11:26 AM
Hello,

You can handle the "error" event of the dataSource, get reference to the server errors and handle the logic for displaying them to the user within the event. It is up to the developer to decide how to present those errors to the client:

Best Regards,
Konstantin Dikov
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
Data Source
Asked by
EGOLF
Top achievements
Rank 2
Answers by
Konstantin Dikov
Telerik team
Share this question
or