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

Width of radupload

2 Answers 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 13 Mar 2012, 08:09 AM
How to change width and select button text in radupload?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Mar 2012, 08:36 AM
Hello,

Try setting Localization-Select to change the text of select button.
ASPX:
<telerik:RadUpload ID="RadUpload1" runat="server" Localization-Select="Your text" >
</telerik:RadUpload>

Try setting the following css to change the width.
CSS:
.RadUpload .ruFakeInput
 {
    width: 900px !important;
 }

Thanks,
Princy.
0
Iana Tsolova
Telerik team
answered on 13 Mar 2012, 08:51 AM
Hello Tina,

To change the Select button text, you can try using the Localization-Select property. To change the width of the Select button for all upload controls on the page you can add the below css rule:
div.RadUpload .ruBrowse {
    width: 165px;
}

And if you want to change the width for a particular RadUpload on the page, you can set it up as below:
<%@ Page Language="C#" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <style type="text/css">
    .upload.RadUpload .ruBrowse {
        width: 125px;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadUpload ID="RadUpload2" runat="server" Localization-Select="Custom Select Text" CssClass="upload">
        </telerik:RadUpload>
    </div>
    </form>
</body>
</html>

Note that in case the RadUpload buttons have different width than the default, you will need to use your own background image for them.

Kind regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Iana Tsolova
Telerik team
Share this question
or