Skip to content Skip to sidebar Skip to footer

Kendo Datasource Transport.destroy With Function Got Called Too Much

I've got a strange problem using transport.destroy: I have a Listview with a swipe event to open the delete option. (like most apps) i did implement this: http://demos.kendoui.com/

Solution 1:

The problem is that you are not saying that the destroy succeeded (options.success();)so next time that you invoke a delete it will try to delete again previous records.

Try destroy as:

destroy: function (options) {
    console.log("1");
    movies.splice(options.data.ProductID, 1);
    options.success();
}

Try it here : http://jsbin.com/AGAGUfE/14#/

Post a Comment for "Kendo Datasource Transport.destroy With Function Got Called Too Much"