Question

I have a Kendo Grid binded to a remote OData endpoint. How can I capture the request URL sent to the remote endpoint in one of the javascript events, like the DataSource's onRequestStart ?

this gives me the filter/sort objects

var filter = this.filter();
var sort = this.sort();

But I want the actual URL, like

http://..serviceroot/table1?$filter=....
Was it helpful?

Solution

The easiest way is via beforeSend:

   transport: {
     read: {
        url: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders",
        beforeSend: function(e, request) {
          console.log(request.url);
        }
     }
   }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top