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

Signalr : Abort current read request

2 Answers 224 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nicolas
Top achievements
Rank 1
nicolas asked on 05 Jun 2015, 10:29 AM

Hi,

With signalr, we can change the page by clicking on link (menu...) even if grid is not loaded (not with AJAX, IIS stores in queue the requests).

Is it possible to "kill" / abort read request in grid, without changing page ?
Ex.: 

- I read the grid data, it takes long time.

- I want to filter data with extra param (that's ok), without waiting for the end of the first request.

I tried to stop / start hub connection before reading, i saw the abort call but grid did'nt send the request next.

 

How can we abort the request pulling ?

 

Many thanks,

 

Kendo v2015.1.408

Signalr 2.2.0

2 Answers, 1 is accepted

Sort by
0
nicolas
Top achievements
Rank 1
answered on 05 Jun 2015, 02:57 PM

This :

           

grid.dataSource.transport.hub.connection.stop();
grid.dataSource.transport.hub.connection.start().done(function () {
    grid.dataSource.page(1);
    grid.dataSource.bind();
});
    

0
Alexander Popov
Telerik team
answered on 09 Jun 2015, 10:59 AM
Hi Nicolas,

The Kendo UI DataSource API does not provide a method for cancelling requests. I am also not sure whether this is actually supported by SignalR, given the status of this GitHub issue.

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
nicolas
Top achievements
Rank 1
Answers by
nicolas
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or