Telerik Forums
Kendo UI for Angular Forum
3 answers
1.4K+ views

Hi,

Is it possible to append the Request Header for the OPTIONS Request Method that happens during the Upload Sequence?

I have done the following, however, it does not affect the OPTIONS request.

1.uploadEventHandler(e: UploadEvent) {   
2.    e.headers.set('Access-Control-Request-Headers', 'authorization');
3.    e.headers.append('Authorization', 'Bearer ' + abp.auth.getToken());
4.  }

 

Basically, on the initial request for OPTIONS, I need to append "Access-Control-Request-Headers: authorization"

Thanks!

Background: I'm using another file control currently that is working well, however I am transitioning everything over to Kendo. When I try to replace the control with the Kendo Upload, I get the following. Tech is Angular, ASP.NET CORE (ABP actually)

Failed to load http://localhost:22742/File/UploadFiles: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:4200' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

 

Duncan
Top achievements
Rank 1
 answered on 06 Jun 2018
1 answer
2.2K+ views

I was investigating the Keno-menu to replace some bootstrap menus in my Angular 6 application.  I went through all the demos but did not see that it supports any sort of click event binding.  Do I need to embed an anchor or button in a  ng-template to do this?

Unless I was missing something it seems like a pretty basic thing for a menu item to support.  I would prefer a declarative method in the Html but if there is some sort of menu event handler that I could add to the component backing the menu that would work

example of what I would have expected :

<kendo-menu>

    <kendo-menu-item text="Sign Out" (click)="signOutUser()"></kendo-menu-item>

</kendo-menu>

 

Daniel
Telerik team
 answered on 06 Jun 2018
3 answers
621 views

I have a form where i implemented kendo-dropdownlist with filterable property. sometime popup filter option list remains open in chrome and firefox. And in IE11, it did not open on click.

 

Svet
Telerik team
 answered on 05 Jun 2018
3 answers
268 views

Hello,

            I have angular 5 application with kendo UI 2018.1.117 used in it. I also want to use Jquery UI library in the same application. I realized that Kendo UI  ships the JQuery library with it and can be accessed in angular code as kendo.jQuery variable. But my jQuery UI library is not able to use this jQuery instance. If I add Jquery explicitly using as described here https://medium.com/@swarnakishore/how-to-include-and-use-jquery-in-angular-cli-project-592e0fe63176 then Jquery UI component works fine. But then I can see that there are two Jquery libraries in my application which breaks the rich text editor feature of kendo UI. Can someone help me how I can I make jQuery UI make use of kendo.jQuery object ? 

vinayak
Top achievements
Rank 1
 answered on 04 Jun 2018
1 answer
595 views

Hi Team,

I am using Kendo Angular Gird. I have requirement to display the years in one column. I have as filter option with numeric. 

But this numeric option does not have "Contains" as filter option.

Example : 18 given no results, if I give exact match [2018] returns results.

Is it possible to add contains option here on numeric columns?

 

Thanks,

Sankar

 

 

 

Dimiter Topalov
Telerik team
 answered on 04 Jun 2018
4 answers
2.2K+ views

Hi,

I have problem with kendo-intl package, whenever I try to use IntlService or to load locale other than default one my application hangs on start-up without any error in console.

I have also tried to use cldr-data (instead of kendo-intl) but same problem occurred.

Btw, I am using system.js for my project.

Any ideas?

Svet
Telerik team
 answered on 04 Jun 2018
6 answers
615 views

We would like to be able to use the Upload Control with Typescript.  But we have a requirement to not do an automatic upload, but to wait until associated form elements are completed.

Our scenario is someone fills out a form, associates the attachments using the control, then the user clicks 'Submit'.  This submits the form first.  Upon success, it gets the Id for the form record and then assigns that value to the File(s).  Then it automatically calls the uploadFiles.

However, we cannot determine how in TypeScript to call the uploadFiles method.  Do you have an example we can look at?

Dimiter Madjarov
Telerik team
 answered on 04 Jun 2018
1 answer
11.1K+ views

Two questions.

1. How to reload/refresh the kendo-grid after update? 

2. How to maintain the state (filter/page number, etc...) after the reload/refresh?

Svet
Telerik team
 answered on 01 Jun 2018
1 answer
381 views
Setting kendo combo and kendo datepicker inside a fieldset that it is disabled keep the controls enabled

https://plnkr.co/edit/aZhSdAtF8eMXav7vDtbp?p=preview
how can I solve this ?
Svet
Telerik team
 answered on 31 May 2018
4 answers
537 views
I need to navigate between different components on click of each treeview node in Angular 5. Kindly provide a way to do this
Svet
Telerik team
 answered on 31 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?