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

how to set width of upload control?

1 Answer 75 Views
Upload
This is a migrated thread and some comments may be shown as answers.
jtby
Top achievements
Rank 1
jtby asked on 12 Nov 2009, 04:18 PM
how do you change the width of radupload control?

<

 

telerikInput:RadUpload Width="100"...

... does not seem to make any difference. I need it to be less wide in order to fit into a particular space.

 

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 17 Nov 2009, 10:26 PM
Hello John,

Thank you for your interest in the RadUpload for Silverlight.

In order to set the Width to the value of 100 you should set the MinWidth to 100 too:
 
<telerikInput:RadUpload
    Width="100"
    MinWidth="100"

This is because of the predefined value of the MinWidth value in the RadUpload Style:
 
<Style TargetType="telerikInput:RadUpload">
    <Setter Property="MinHeight" Value="80" />
    <Setter Property="MinWidth" Value="250" />
    <Setter Property="MaxHeight" Value="300" />
    <Setter Property="Width" Value="400" />

Note: If you consider to use the such a thin uploader please modify its template in order to avoid elements' cutting and overriding.

If you have other questions please do not hesitate to contact us again.

Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Upload
Asked by
jtby
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or