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

Dropzone Only

1 Answer 311 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 05 Apr 2018, 06:18 PM
Is it possible to only have the dropzone visible and hide the "choose file" button?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Apr 2018, 07:30 AM
Hello Tim,

Yes, this is possible. In case of a Custom Drop Zone scenario, the whole Upload widget may be hidden by applying CSS style "display: none;" to it - screenshot:

html body .k-widget.k-upload {
    display: none;
}

And in case of an Asynchronous Upload, "Select files..." button may be hidden by applying "display: none;" to it as well. And in order to preserve the height of the dropzone after that, a style for setting its height should be applied - sample Dojo based on the demo.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Upload
Asked by
Tim
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or