Multiple requests on delete

2 posts, 0 answers
  1. Juremir
    Juremir avatar
    5 posts
    Member since:
    Jan 2012

    Posted 26 Jan 2014 Link to this post

    Hello,
    i'm having trouble with kendo ui events handler.
    When an error has been throwed from controller to the request response, the error is showed on an alert, like this:

    @(Html.Kendo().Grid(Model)
          .Name("grid")
          .Events(e => e.Error("error")
    //another declarations
     
    function error (args){
       if (!args) return;
     
       if (args.errors) alert(args.errors)
    }

    The problem is when the delete request is make again, the grid makes the requisition again, and keep maintaining the request makes before, doing multiple requests.




  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 29 Jan 2014 Link to this post

    Hi Juremir,

    Basically the DataSource will retry failed operations either until they succeed or until the cancelChanges method is invoked.

    Regards,
    Alexander Popov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top