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

Option to disable cancel during file upload

4 Answers 269 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 31 Dec 2011, 02:08 AM
Is there such an option right now? We don't want users to be able to cancel an upload in progress.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Piotr
Top achievements
Rank 1
answered on 03 Jan 2012, 02:19 PM
Yes, there is.

You can do following:

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

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

Hope it helps.

Piotr
0
Joel
Top achievements
Rank 1
answered on 03 Jan 2012, 04:34 PM
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.
0
Piotr
Top achievements
Rank 1
answered on 04 Jan 2012, 09:35 AM
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
0
Joel
Top achievements
Rank 1
answered on 04 Jan 2012, 10:03 AM
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.
Tags
Upload
Asked by
Joel
Top achievements
Rank 1
Answers by
Piotr
Top achievements
Rank 1
Joel
Top achievements
Rank 1
Share this question
or