Hello guys,
I would like to know, if is there any way to cancel the request that fill some data by ajax on the grid of Kendo UI web?
I mean it because I have a page where the user can change the filter (on links.. not on the grid) and sometimes I have a lot of data coming from the async request, so if my user change these filters I would like to cancel the async request and start another one.
Look my code:
var path = 'my-url';
var grid = $("#grid").kendoGridTranslated({
dataSource: {
type: "json",
transport: {
read: {
dataType: "json",
url: path,
cache: false,
type: 'POST',
data: {
parameter: true
}
}
}
/* configuration and fields*/
}).data("kendoGrid");
Thank you.
I would like to know, if is there any way to cancel the request that fill some data by ajax on the grid of Kendo UI web?
I mean it because I have a page where the user can change the filter (on links.. not on the grid) and sometimes I have a lot of data coming from the async request, so if my user change these filters I would like to cancel the async request and start another one.
Look my code:
var path = 'my-url';
var grid = $("#grid").kendoGridTranslated({
dataSource: {
type: "json",
transport: {
read: {
dataType: "json",
url: path,
cache: false,
type: 'POST',
data: {
parameter: true
}
}
}
/* configuration and fields*/
}).data("kendoGrid");
Thank you.