Option to disable cancel during file upload

5 posts, 0 answers
  1. Joel
    Joel avatar
    78 posts
    Member since:
    Oct 2012

    Posted 30 Dec 2011 Link to this post

    Is there such an option right now? We don't want users to be able to cancel an upload in progress.

    Thanks.
  2. Piotr
    Piotr avatar
    6 posts
    Member since:
    Nov 2011

    Posted 03 Jan 2012 Link to this post

    Yes, there is.

    You can do following:

    $("#fileUpload").data("kendoUpload").toggle();

    where "fileUpload" is the name of the input field.

    Hope it helps.

    Piotr
  3. Joel
    Joel avatar
    78 posts
    Member since:
    Oct 2012

    Posted 03 Jan 2012 Link to this post

    Thanks Piotr ... I already have that hack in place. But it is still a hack - tt greys the whole control out and is not professional-looking.

    I was hoping for a possibility to just have the Cancel button not appear at all.
  4. Piotr
    Piotr avatar
    6 posts
    Member since:
    Nov 2011

    Posted 04 Jan 2012 Link to this post

    That is not possible. I was looking for that possibility in the thread below that i created earlier:

    http://www.kendoui.com/forums/ui/upload/customizing-async-upload-button-and-triggering-cancel-event.aspx 

    Piotr
  5. Joel
    Joel avatar
    78 posts
    Member since:
    Oct 2012

    Posted 04 Jan 2012 Link to this post

    Ah, thanks for the link ... stinks they won't consider creating such an option.

    For now, what I was able to do was hide the cancel button (found using class selector) once the upload begins via the upload event of the control.
Back to Top