Grid DataSource - 500 Error

4 posts, 0 answers
  1. Jesse
    Jesse avatar
    3 posts
    Member since:
    May 2017

    Posted 28 Jun Link to this post

    Hi, I had my grid working great with a version of Kendo maybe 2 months old as of today.  I just updated the Telerik/Kendo control to the 2017.2.621 build and now when I try to do any of the CRUD operations in the grid, including reading data:

    .Read(read => read.Action("EditingInline_Read", "PdfContents"))

    I get a 500 error when viewing the developers tools in Chrome:

    POST http://localhost:63508/PdfContents/EditingInline_Read 500 (Internal Server Error).

    The grid handles this silently (gracefully) but nothing happens.  If I didnt look in the developer tools in Chrome, I wouldn't know what is happening.

    I can't seem to figure out what the issue is.  I did not change any code whatsoever.  I just updated Kendo UI for ASP.NET MVC

  2. Preslav
    Admin
    Preslav avatar
    181 posts

    Posted 30 Jun Link to this post

    Hi Jesse,

    The 500 error is generic, based only on it, I am not sure what might be the cause for this faulty behavior.

    A possible cause might be the fact that the Kendo scripts are not included in the correct order. For more information, I would suggest checking this forum post:
    Further, a possible workaround might be reverting the project to the last stable version. After that, use the update wizard to get the latest version:

    Regards,
    Preslav
    Progress Telerik
    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.
  3. Jesse
    Jesse avatar
    3 posts
    Member since:
    May 2017

    Posted 03 Jul Link to this post

    Turns out what got it working was to add the Route attribute to the controller method like so:

    [Route("EditingInline_Update")]
    public ActionResult EditingInline_Update([DataSourceRequest] DataSourceRequest request, IndexPageViewModel vm)

     

    Without the Route attribute it was throwing the 500.  I never needed the attribute in the past, but since upgrading Kendo, it is forcing me to do this.

  4. Preslav
    Admin
    Preslav avatar
    181 posts

    Posted 05 Jul Link to this post

    Hello Jesse,

    Based on the gathered information, we are not able to determinate the origin for this faulty behavior.

    Thank you for sharing the resolution with the community.


    Regards,
    Preslav
    Progress Telerik
    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.
Back to Top