Unplanned
Last Updated: 14 Oct 2021 10:26 by ADMIN
Alon
Created on: 07 Oct 2021 12:56
Category: Data Source
Type: Feature Request
3
Feature Request: Ability to cancel "mid-flight" a transport read request on a DataSource

We use a DataSource with a custom transport and read method to filter some data on the 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) {}....

 

As the user types we issue a read request but it would be nice to have a way to cancel the last read request with a method call (ie. abortRequest() or abortReadRequest() ). We can implement a work around as shown here https://dojo.telerik.com/@Dimitar-Goshev/IxaLUtIw but I think it would be reasonable feature to simply have this internalized into the DataSource code so that the abort logic is internal to the DataSource class.

0 comments