How to set Authorization header for transport read in angularJS?

2 posts, 0 answers
  1. Alan Y
    Alan Y avatar
    1 posts
    Member since:
    Jan 2014

    Posted 26 Oct Link to this post

    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!

     

     

  2. Stefan
    Admin
    Stefan avatar
    276 posts

    Posted 28 Oct Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
Back to Top