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

e.XMLHttpRequest.setRequestHeader onRemove Event

5 Answers 109 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Ever
Top achievements
Rank 1
Ever asked on 27 Jan 2015, 03:52 PM
Hello, I am sending data (onUpload event) to webapi, for example:

function onUpload (e) { 
   e.XMLHttpRequest.setRequestHeader(key, value);
}

Also, I need to send another data when the file is removed (onRemove event), but the paramater "e" in this event  doesn't have the object XMLHttpRequest, that why, I can not use the function e.XMLHttpRequest.setRequestHeader(key, value);

I am using the latest version of Kendo UI Controls

What is your suggestion?

5 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Jan 2015, 04:21 PM
Hello Ever,


The XMLHttpRequest parameter is currently not exposed in the remove event of the Upload widget. As a workaround you could use jQuery Global Ajax Event Handlers. Please excuse us for the caused inconvenience.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ever
Top achievements
Rank 1
answered on 28 Jan 2015, 02:51 PM
Hello Dimiter, I tried with jQuery ajax events and it worked, thanks for helping me out.
0
Dimiter Madjarov
Telerik team
answered on 29 Jan 2015, 07:55 AM
Hello Ever,


Thanks for the update. I am glad the information was helpful.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Damian
Top achievements
Rank 1
answered on 10 Nov 2015, 01:25 PM

Hi,

Is there any plan to expose XMLHttpRequest parameter in the remove event?

0
Dimiter Madjarov
Telerik team
answered on 12 Nov 2015, 08:31 AM

Hello Damian,

We have logged this feature request in our future development plans, but cannot currently state an exact time-span on when it will be implemented.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Ever
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Ever
Top achievements
Rank 1
Damian
Top achievements
Rank 1
Share this question
or