Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kendo Grid api Server Error Handling #28

Open
aliebrahimi2015 opened this issue Nov 21, 2016 · 0 comments
Open

Kendo Grid api Server Error Handling #28

aliebrahimi2015 opened this issue Nov 21, 2016 · 0 comments

Comments

@aliebrahimi2015
Copy link

hi
how to Error Handling when Create or update record (inline and incell) with kendo api?

[HttpPost]
public virtual async Task CreatePersonnels([Bind(Prefix = "models")]IEnumerable models)
{
_accountService.Value.AddPersonnels(new List(model);
await _unitOfWork.SaveAllChangesAsync();
}
var queryString = Request.Url.ParseQueryString().GetKey(0);
var request = JsonConvert.DeserializeObject(queryString);
var resultData = new List();
return Json(resultData.AsQueryable().ToDataSourceResult(request, ModelState));
}
ModelState not use with ToDataSourceResult

how to use server error in client?
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant