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

Cancel the Request to fill the grid

0 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Felipe
Top achievements
Rank 1
Felipe asked on 20 Sep 2012, 06:32 PM
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.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Felipe
Top achievements
Rank 1
Share this question
or