Server error handling

2 posts, 0 answers
  1. brian keating
    brian keating avatar
    5 posts
    Member since:
    Jan 2010

    Posted 30 Aug 2012 Link to this post

    hi all,



    I've a listview bound to MVC4 ApiController calls, this all works fine except when I try to insert a duplicate.

    My server will fail it's validation and return a different HttpStatus code,



    how can I cancel the insert?? or even refresh the listview?



    also,, kendo appears to call my ApiController multiple times from now on when creating new valid records, it's like it keeps trying to resend the invalid entry :-(







  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 04 Sep 2012 Link to this post

    Hello Brian,

    You can handle Error event of the DataSource and show the model errors on client.  See how this is implemented in point 10 in the following article for the Grid widget:
    http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/ajax-editing

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top