This is a migrated thread and some comments may be shown as answers.

Multiple requests on delete

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Juremir
Top achievements
Rank 2
Juremir asked on 26 Jan 2014, 05:05 PM

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.




1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 29 Jan 2014, 07:55 AM
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!
Tags
Grid
Asked by
Juremir
Top achievements
Rank 2
Answers by
Alexander Popov
Telerik team
Share this question
or