Kendo grid editable display server side validation error

1 Answer 20 Views
Grid Validation
Varun
Top achievements
Rank 1
Varun asked on 11 Mar 2024, 09:47 AM

Hello Kendo Experts,

I'm currently working on integrating a Kendo JQuery Grid with an ASP.NET Core server-side setup that utilizes Fluent Validation for data validation. When submitting data via the grid, the server responds with a structured error message in case of validation failures, following this format:

{
    "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
    "title": "One or more validation errors occurred.",
    "status": 400,
    "traceId": "|30c76381-41abcc1635c93e3c.",
    "errors": {
        "ProductId": [
            "'ProductId' must not be empty."
        ],
        "Quantity": [
            "'Quantity' must not be empty.",
            "'Quantity' must be greater than '0'."
        ]
    }
}



My goal is to handle these validation errors and present them to the user in a user-friendly manner within the Kendo Grid interface. This involves processing the error messages received from the server and displaying them near the corresponding input fields for easy identification and correction by the user.

Could you kindly provide guidance or suggestions on how to achieve this? Any insights or examples on how to format and display these error messages effectively within the Kendo Grid would be greatly appreciated.

Thank you for your assistance.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 14 Mar 2024, 08:49 AM

Hello, Varun,

Here you will find a small forum thread that discusses server validation in the Grid. You will find an example project there as well that might help you get started.

Let me know if that would be useful.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Grid Validation
Asked by
Varun
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or