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

Hide drop zone hint text for mobile devices?

1 Answer 390 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 02 Oct 2014, 04:43 AM
Is there a way to automatically have the drop zone hint text be not visible for mobile devices like iPad, etc?
Thanks,
--Ed

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 02 Oct 2014, 10:14 AM
Hi Ed,


Here is a sample approach to check the current device and remove the Drop zone hint text after the widget is initialized.
E.g.
$(function () {
    var upload = $("#files").data("kendoUpload");
    var isMobile = kendo.support.mobileOS;
     
    if (isMobile) {
        upload.wrapper.find(".k-dropzone em").remove();
    }
});

I wish you a great day!

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
Ed
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or