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

[Solved] Custom browse button (image)

3 Answers 150 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
B
Top achievements
Rank 1
B asked on 30 Mar 2009, 07:21 PM
Hi,
In a RadUpload control, how can I replace the default 'Browse' button with custom browse button (an image)?

Thanks

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 31 Mar 2009, 11:49 AM
Hi B,

The "Browse" button is rendered as an input element with the ".RadUpload .ruBrowse" CSS class applied. You can override the provided appearance by modifying the ruBrowse css. Here is a short

    <style type="text/css">  
    .RadUpload .ruBrowse  
    {  
        background-imageurl(MyImage.gif) !important;  
    }  
    </style> 


Greetings,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
B
Top achievements
Rank 1
answered on 31 Mar 2009, 04:52 PM
Do I need to explicitly set the css class for the RadUpload control? I've tried applying the css style you provided in the example but the default button is still rendered.

The following is my RadUpload control code:

 <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" AllowedFileExtensions=".txt" > 
                            <Localization Select="" />  
  </telerik:RadUpload>
0
Paul
Telerik team
answered on 01 Apr 2009, 08:37 AM
Hello B,

Please find attached a sample web application that shows the needed approach.

Regards,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
B
Top achievements
Rank 1
Answers by
Paul
Telerik team
B
Top achievements
Rank 1
Share this question
or