how to set width of upload control?

2 posts, 0 answers
  1. jtby
    jtby avatar
    43 posts
    Member since:
    Feb 2007

    Posted 12 Nov 2009 Link to this post

    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.

     

  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 17 Nov 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top