Hide drop zone hint text for mobile devices?

2 posts, 1 answers
  1. Ed
    Ed avatar
    168 posts
    Member since:
    Sep 2013

    Posted 01 Oct 2014 Link to this post

    Is there a way to automatically have the drop zone hint text be not visible for mobile devices like iPad, etc?
    Thanks,
    --Ed
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 02 Oct 2014 Link to this post

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