Is it possible to control textbox size in rad async upload control

3 posts, 1 answers
  1. Geetha
    Geetha avatar
    13 posts
    Member since:
    Jul 2012

    Posted 22 Oct 2012 Link to this post

    Hi All,

               I am using RadAsyncUpload control in my program. I wanted to reduce the size of text box which comes with asyncupload control. Is it possible??? Here is my sample code.

    <telerik:RadAsyncUpload runat="server" AllowedFileExtensions="jpg,png" ID="rdUploadImage" MultipleFileSelection="Disabled" MaxFileInputsCount="1" ControlObjectsVisibility="None" Width="1px" OnClientFileUploaded="ImageFileUploaded" InputSize="40" >
      <Localization Select="Browse" />
      </telerik:RadAsyncUpload>
      <style type="text/css">
      .RadUpload  .ruRemove 
      {
          display:none;
      }
      </style>

    If anybody knows, kindly let me know the solution. Thanks in advance.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Oct 2012 Link to this post

    Hi Geetha,

    Try overriding the default css as follows to achieve your scenario.

    CSS:
    <style type="text/css">
     .RadUpload .ruFakeInput
     {
      height: 12px!important;
      width:60px!important;
     }
    </style>

    ASPX:
    <telerik:RadAsyncUpload runat="server" AllowedFileExtensions="jpg,png" ID="rdUploadImage" MultipleFileSelection="Disabled" MaxFileInputsCount="1" OnClientFileUploaded="ImageFileUploaded" >
      <Localization Select="Browse" />
    </telerik:RadAsyncUpload>

    Hope this helps.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Geetha
    Geetha avatar
    13 posts
    Member since:
    Jul 2012

    Posted 22 Oct 2012 Link to this post

    Thanks Princy. it solved my issue.
Back to Top