title: KendoUI DataSource - OData querystring from filter attribute
body: <p>In a current project I would like to use the $http service of angular to make HTTP requests in my Kendo Data Sources, because I am using a response interceptor as described in this blog:</p>
  
  <p><a href="http://www.espeo.pl/2012/02/26/authentication-in-angularjs-application" rel="nofollow">http://www.espeo.pl/2012/02/26/authentication-in-angularjs-application</a></p>
  
  <p>I am using a KendoUI Grid in my application to display data, which I get in JSON format from the server. For some reason the odata query is cut off, if I specify a function in the "transport"-object and only the URL is sent to the server (example.com/odata/Foo), rather than the full query (example.com/odata/foo?$filter=barId lt 100).</p>
  
  <p>I set up my Kendo DataSource like this:</p>
  
  <pre><code>$scope.foo = new kendo.data.DataSource({
          type: "odata",
          pageSize: 25,
          serverPaging: true,
          serverFiltering: true,
          serverSorting: true,
          transport: {
              read: function (options) {
                  $http({
                      url: '/odata/foo',
                      method: 'GET',
                      params: options.data
                  })
                  .success(function (result) {
                      options.success(result);
                  });
              },
              parameterMap: function (options, type) {
                  return kendo.data.transports["odata"].parameterMap(options, type);
              }
          }
  </code></pre>
  
  <p>HTTP requests using the $http service of angular work fine, I'm not having problems with that. The problem seems that I am unable to get the query part <code>(URL?$filter=[filter expression])</code> from the "filter" object in my kendo data source. I tried using the parameterMap option, but that did not give the desired results, either.</p>