Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Upload > RadUpload input placement chrome/firefox bug?

Answered RadUpload input placement chrome/firefox bug?

Feed from this thread
  • Daniel avatar

    Posted on Feb 2, 2012 (permalink)

    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.


    Reply

  • Answer Bozhidar Bozhidar admin's avatar

    Posted on Feb 6, 2012 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Upload > RadUpload input placement chrome/firefox bug?
Related resources for "RadUpload input placement chrome/firefox bug?"

ASP.NET Upload Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]