We have defined a new data source which executes a $.ajax to retrieve some data from a remote server.
return new kendo.data.DataSource({
pageSize: 10,
serverPaging: true,
serverSorting: true,
serverFiltering: true,
type: "json",
sort: {
field: "name",
dir: "asc"
},
transport: {
read: function (options) {}....
Now lets consider the following scenario:
The read function is triggered and the call is made to the server but the server is being slow. In the meantime a new read request needs to be made and we want to abort the current read request and issue a new one.
Using vanilla Jquery we just do something like
myAjaxRequest.abort()
However, I can not seem to find a similar method to abort a read request (or any request) in the Kendo Data Source Object.
Are you able to offer a solution?