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

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

2 Answers 402 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Geetha
Top achievements
Rank 1
Geetha asked on 22 Oct 2012, 05:59 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 Oct 2012, 07:24 AM
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.
0
Geetha
Top achievements
Rank 1
answered on 22 Oct 2012, 08:45 AM
Thanks Princy. it solved my issue.
Tags
AsyncUpload
Asked by
Geetha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Geetha
Top achievements
Rank 1
Share this question
or