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

How to set Authorization header for transport read in angularJS?

1 Answer 93 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Alan Y
Top achievements
Rank 1
Alan Y asked on 26 Oct 2016, 11:12 AM

Hi,

I'm trying to add http header to transport read in angularJS.

I use bellow option, but It did not work. I think this is because JQuery function did not work in angularJS frame. Can you give me some guide?

            beforeSend: function(req) {
                req.setRequestHeader('Authorization', auth);
            }

 

PS, could you give me some information for Kendo UI Integrate angularJS. I am not sure Kendo UI will work perfectly in angularJS. I use angularJS 1.X.

Thanks very much!

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 28 Oct 2016, 07:55 AM
Hello,

Please check more information on how to set Authorization headers for transport read:

http://www.codeproject.com/Tips/1067844/How-To-Use-Kendo-UI-Grid-With-Authentication

The same DataSource configuration can be used and AngularJS and it will work as expected.

Regarding the Kendo UI and AngularJS integration, I can suggest checking the articles in our documentation:

http://docs.telerik.com/kendo-ui/AngularJS/introduction

I hope this is helpful.

Regards,
Stefan
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
Tags
Data Source
Asked by
Alan Y
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or