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

[Solved] Unobtrusive validation and grid editing

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Attila Vigh
Top achievements
Rank 1
Attila Vigh asked on 21 Nov 2010, 01:01 PM

I found, if I turn on Unobtrusive validation  in mvc 3, after press insert/update button, ModelState errors not display in edit popup form.

 

<add key="UnobtrusiveJavaScriptEnabled" value="true"/>    


[GridAction]
[HttpPost]
public ActionResult insertRole(long? id)
{
    ModelState.AddModelError("code", "some error");
    return View(new GridModel(base.loadRoles().roles));
}

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 23 Nov 2010, 12:20 PM
Hi Attila,

Indeed, I was able to observed the mentioned behavior. However, I'm happy to inform you that we were able to address it and I'm attaching a modified version of telerik.grid.editing.min.js file. Please switch files in your project and give it a try.

Greetings,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Attila Vigh
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or