Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8753203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:23:01+00:00 2026-06-13T13:23:01+00:00

ASP.Net MVC 3, Kendo UI Web. Typical example — there is a database and

  • 0

ASP.Net MVC 3, Kendo UI Web.

Typical example — there is a database and some tables, user is editing the data — adding new entries, deleting, updating.

Apart from technical problems (network connection down), there could be several logical ones — for example user does not have permission to write anything, or there is a lock on data, or user tries to update something what was deleted meanwhile, and so on.

So I would like to return in such cases an error, so I could handle it with Kendo and display, let’s say some alert dialog (JS alert).

Now — what would be the most well designed way, most correct, to do so? I am not looking for “oh, well, it just works” approach.

Is throwing HttpException a good idea in such case (I have my issues with it, because it is http exception, and the error I try to pass has nothing to do with http really)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:23:02+00:00Added an answer on June 13, 2026 at 1:23 pm

    I’m going to work under assumption that you’re using Kendo DataSource object which exists on most widgets in self-binding mode (has transport section defined and fires it’s own CRUD requests).

    The actions that your grid’s CRUD is tied to, should be returning IEnumerable.ToDataSourceResult, on the model it received as input. If in your processing you detected errors, add them to ModelState via ModelState.AddModelError method which you can access in your action. The ToDataSourceResult will detect presense of any errors in ModelState object automatically and serialize them into the JSON response (errors field). You can then act on them via subscribing to DataSource.error even on the client side (see http://docs.kendoui.com/api/framework/datasource#error).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.Net MVC 3, Kendo UI Web, Kendo grid control. My main datasource uses foreign
ASP.Net MVC 3, Kendo UI Web, Kendo grid control. I configured several fields to
The situation: I have build a Grid with kendo-ui web (in ASP.NET MVC 3)
I have an asp.net MVC web app using Kendo UI Grids with client templates.
ASP.NET MVC can generate HTML elements using HTML Helpers, for example @Html.ActionLink() , @Html.BeginForm()
ASP.NET MVC web app that exposes friendly URLs: http://somesite.com/friendlyurl ...which are rewritten (not redirected)
My ASP.NET MVC web site markup looks wrong in iOS (both iPad and iPhone).
ASP.Net MVC apps have a business database FOO.MDF and a seperate accounting database ASPNETDB.MDF
ASP.Net MVC 3 using C# I currently have a form with some dropdown lists
My ASP.NET MVC project has some chapter class and related tag class They have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.