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

RadUpload input placement chrome/firefox bug?

1 Answer 93 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 03 Feb 2012, 12:05 AM
I found that the radupload gets translated into  a series of input tags.

the input type=file is just  chilling at  position: absolute; left: 0px; top: -5000px;  

this happens while the hover over is not fired.

The problem with this is that my page is rather large and -5000 px before the upload
is some checkbox

So when i click on the checkbox a File browse fires and i'm prompted to upload
a file instead of just checking the  current checkbox. 

Is there a fix for this?  I tried hiding the input but that renders the control useless.


1 Answer, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 06 Feb 2012, 04:26 PM
Hello Daniel,

This is a part of the implementation in the previous versions of RadUpload. To increase the offset, try the following:
function pageLoad() {
    var upload = $find("<%= RadUpload1.ClientID %>");       
    upload._hideFileInput = function(fileInput)
    {
        var location = {x: 0, y: -100000};
        $telerik.setLocation(fileInput, location);
    }
}


All the best,
Bozhidar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Upload (Obsolete)
Asked by
Daniel
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or