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

Inline editting validation errors not stopping grid from updating

4 Answers 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 14 Dec 2012, 08:47 PM
I followed the ajax editting docs and I have server side validation error correctly getting displayed.  But the grid action still completes and the grid reverts back to view mode instead of staying in edit mode so I can correct the errors.

How do I get the grid to not update itself?

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 18 Dec 2012, 02:58 PM
Hello,

This is not supported out of the box but can be achieved with the approach suggested in this code-library.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Pat
Top achievements
Rank 1
answered on 18 Dec 2012, 06:30 PM
Thanks.  I had originally tried what was in that example, but it didn't work for me.  So I tried it again, and this time it worked.

What I did was just add this

var grid = $("#Grid").data("kendoGrid");
           grid.one("dataBinding", function (e) {
               e.preventDefault();   // cancel grid rebind if error occurs                                             
           });

to my error function.  You should consider updating your mvc docs to include this snippet in that function.
0
Terrina
Top achievements
Rank 1
answered on 28 Apr 2017, 05:02 PM
I want to see this solution, however, I don't have VS 2010 and can't open the solution. Is it available in 2013?
0
Boyan Dimitrov
Telerik team
answered on 02 May 2017, 11:01 AM

Hello,

When you try to open the solution with VS 2013 it will ask you to make changes to the project file in order to include all new features introduced in this version of VS and make it available with this project. This is a MVC 3 project and it might need to update to MVC 4 or later. The following command will help you to do that. Also a reference to the Kendo.MVC.dll for .NET 4.0 will be required. Please refer to the Distribution Contents article to find the proper assembly version. 

Regards,
Boyan Dimitrov
Telerik by Progress
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
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Pat
Top achievements
Rank 1
Terrina
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or