Hide input box

Thread is closed for posting
3 posts, 1 answers
  1. Aaron
    Aaron avatar
    22 posts
    Member since:
    Nov 2008

    Posted 03 May 2009 Link to this post

    Hi

    I use a RadUpload to attach documents which are then rendered as records in a grid.
    I upload a document by intercepting the OnClientFileSelected event of the upload control.

    This all works fine.

    What I want to do now is hide the input box as all I need is the 'browse' button.

    Is there a way to hide the input box? or
    Is there a way to fire the RadInput's click event from another control?

    Cheers
    Aaron
  2. Answer
    Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 04 May 2009 Link to this post

    Hello Aaron,

    1) The browse button only outlook can be achieved easily: simply add this css to your project:

            .ruFakeInput 
            { 
                display:none
            } 

    2)It is not possible to upload files ( i.e. to press the upload button ) with javascript due to a security reasons. Otherwise, a malicious script would have had the possibility to upload whatever file from one's computer.

    All the best,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aaron
    Aaron avatar
    22 posts
    Member since:
    Nov 2008

    Posted 04 May 2009 Link to this post

    As usual the Telerik team has great support, Thanks!

    Worked straight way, although I will have to play with the styles a bit as the button has no left border in the skin I was using (Outlook).

    Cheers
    Aaron
Back to Top