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

Kendo popup on validation errors

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chatra
Top achievements
Rank 1
Chatra asked on 27 May 2014, 05:36 PM
Hi,

I have a kendo pup shown on grid edit.

For some reason the popup closing even though there are server validation failure messages  shown beside fields on form  when creating a new item/row in the grid.

.But this does not happen when edit is done existing Row in the grid.The popup doesn't close when their are validation messages shown  on the form for incorrect input.

Any thoughts.

Thanks
Chatrapathi chennam

1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 29 May 2014, 01:53 PM
Hello Chatra,

Indeed the Popup editing mode is closed no matter if there are exceptions from the server or not. To handle this you need to prevent the next binding of the Grid (using e.preventDefault inside a dataBinding event handler).

You can take the approach from this code library article:

http://www.telerik.com/support/code-library/handling-server-side-validation-errors-during-pop-up-editing

Kind Regards,
Petur Subev
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
Chatra
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or