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

Adding Client Side validation errors in a grid to a Toaster

1 Answer 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kavitha
Top achievements
Rank 1
Kavitha asked on 30 Sep 2013, 07:44 PM
Hello,

I have a Kendo Grid and I am doing both client and server side validation when the fields in a row of a grid are modified. I am able to display the server side validation errors and custom validation errors in  a Toaster by adding them to the Toaster in the Grid Error event . I would like to do the same for client side validation errors as well (For eg. if a value doesn't meet the range specified for that field) I would like them to be added to the Toaster and display them when I click the 'Save' button on that row in the grid. Any help is greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 02 Oct 2013, 11:03 AM
Hi Kavitha,

To achieve this behavior you will need to disable the built-in client validation and use the save event to check the ranges and display notifications. You can find a basic example that works with InLine and PopUp editing modes hereImplementing the same functionality using InCell editing mode is far more complicated and will require a custom solution.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Kavitha
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or