Completed
Last Updated: 20 Nov 2014 20:38 by ADMIN
Dave
Created on: 23 Aug 2014 12:50
Category: Data Source
Type: Feature Request
2
Deeper integration between data sources and Angular $http
I know you're continuing to improve the kendo/angular integration, but with the rise of full single page applciationsI think you need a deeper integration between the data source and the use of $http (ie services or resources), to cater for such things as custom http headers (for authentication/authorization, application state, etc), which are often set using http interceptors. A typical example is an authentication token.

I'd rather use the grid & data sources' built in functionality such as just setting the url for the source of the data, but this doesn't allow any way to set custom http headers to have the auth token sent along with the request. I see two options:

1. Allow the dataSource to use $http directly for its transport, thereby piggy-backing ontop of the angular http architecture.
2. Keep what you have and allow the requestStart event to have access to the HTTP Headers collection, thus allowing us to modify them before the request gets sent.
1 comment
Dave
Posted on: 25 Aug 2014 11:56
As usual, after posting something you solve it. I found posts (eg http://www.telerik.com/forums/how-to-set-authorization-header-for-transport-read) that show how easy this is with the beforeSend event of the transport, but this event isn't document in the api docs. Please update the docs.