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

Hide input box

2 Answers 61 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 04 May 2009, 04:55 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 04 May 2009, 08:39 AM
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.
0
Aaron
Top achievements
Rank 1
answered on 04 May 2009, 11:05 PM
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
Tags
Upload (Obsolete)
Asked by
Aaron
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Aaron
Top achievements
Rank 1
Share this question
or