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

[Solved] Hiding RadUpload buttons

7 Answers 694 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
franchute
Top achievements
Rank 1
franchute asked on 10 Apr 2008, 02:07 PM
Hi guys,
I have a radupload control in my page. Basically, is the same control showed in telerik sample but I would like to hide add/delete buttons that appears within the control (and the remove button as well).
Is there any way to do that ?

Thanks in advance,

François.

7 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 10 Apr 2008, 03:13 PM
Hi François,

RadUpload provides ControlObjectsVisibility property which you can use to show/hide the some of its components. If you want to have only file input and a select button, you should set the ControlObjectsVisibility value to "None", e.g:
<telerik:radupload id="RadUploadControl" runat="server" controlobjectsvisibility="None" /> 

Kind regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
franchute
Top achievements
Rank 1
answered on 10 Apr 2008, 03:19 PM
Thank you Sophy.
0
Dejan
Top achievements
Rank 1
answered on 10 Jul 2009, 08:27 AM

Hi Sophy,

Upon setting ControlObjectsVisibility to "None", Iwant to add a custom button and custom validation to the right of thecontrol. It appears that there is some "withespace" at the end of the"Select" button. Is there a way to remove this since I would like tohave a custom button and validation positioned next to the controls' "Select" button?


Regards

Dejan
0
Genady Sergeev
Telerik team
answered on 10 Jul 2009, 08:42 AM
Hello Dejan,

Which version of the RadUpload and which skin are you using?

Sincerely yours,
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
Dejan
Top achievements
Rank 1
answered on 10 Jul 2009, 08:51 AM
Genady,
It is default skin, on 2009 Q1 SP2 build 2009.1.527. File version 2009.1.527.35

Here is sample code:
<table> 
  <tr> 
    <td> 
       <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None"></telerik:RadUpload> 
    </td> 
    <td> 
       Dejan'sCustomButton goes here 
    </td> 
  </tr> 
</table> 

Thanks for prompt response.

Dejan
0
Genady Sergeev
Telerik team
answered on 10 Jul 2009, 01:46 PM
Hi Dejan,

You can set RadUpload dimensions using his Width and Height properties. In your case you need to set the width property to 226px. I have determined that using FireBug and it's layout visual designer. Here is your modified code:

 
<table> 
            <tr> 
                <td> 
                    <telerik:RadUpload ID="RadUpload1" runat="server"  
                        ControlObjectsVisibility="None"  
                        Width="225px"
                    </telerik:RadUpload> 
                </td> 
                <td> 
                    Dejan'sCustomButton goes here 
                </td> 
            </tr> 
        </table> 


Best wishes,
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
Dejan
Top achievements
Rank 1
answered on 13 Jul 2009, 06:00 AM
Thanks Genady,

That worked well. ... even it seems to be odd to set that property to remove trailing space in controll...

Cheers

Dejan



Tags
Upload (Obsolete)
Asked by
franchute
Top achievements
Rank 1
Answers by
Sophy
Telerik team
franchute
Top achievements
Rank 1
Dejan
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or