e.XMLHttpRequest.setRequestHeader onRemove Event

6 posts, 0 answers
  1. Ever
    Ever avatar
    8 posts
    Member since:
    Nov 2014

    Posted 27 Jan 2015 Link to this post

    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?
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 27 Jan 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Ever
    Ever avatar
    8 posts
    Member since:
    Nov 2014

    Posted 28 Jan 2015 in reply to Dimiter Madjarov Link to this post

    Hello Dimiter, I tried with jQuery ajax events and it worked, thanks for helping me out.
  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 29 Jan 2015 Link to this post

    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!
     
  6. Damian
    Damian avatar
    1 posts
    Member since:
    Jan 2013

    Posted 10 Nov 2015 in reply to Dimiter Madjarov Link to this post

    Hi,

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

  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 12 Nov 2015 Link to this post

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