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

Localized text does not cause buttons to resize

3 Answers 90 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 11 Jun 2012, 08:03 PM
When using the demo for the Upload Localization http://demos.telerik.com/aspnet-ajax/upload/examples/localization/defaultcs.aspx

When the text changes (change from English to Francias) , the Select button does not resize for the new text. 

My specific problem is with the Add button but the issue can be duplicated on the Demo site. 

Im assuming its a stylesheet issue but cant seem to find the problem. Any suggestions?

3 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 13 Jun 2012, 08:31 PM
Ben,

You can control the sizing of the "Add" button using the following CSS:

<style type="text/css"> 
       .ruAdd 
       { 
           background-position: 0 -46px !important;
  
           width: 122px !important; 
       } 
   </style>

You can reference the CSS Skin File Selectors documentation for assistance.

Hope this helps!
0
Ben
Top achievements
Rank 1
answered on 08 Aug 2012, 07:29 PM
using the style to override works.
 Yet, when changing between several languages where the number of characters varries from 5 characters to 25 characters, the width will never adjust.  Right now I must set the width of the .ruAdd width to meet the largest size, and deal with my clients complaints.

Couldn't the control set the width based on the text that it contains?
0
Shinu
Top achievements
Rank 2
answered on 09 Aug 2012, 12:34 PM
Hi Ben,

One suggestion is that you can set the width using jquery as follows.

Javascript:
<script type="text/javascript" >
 function pageLoad()
 {
  var text = $find("<%=Radupload1.ClientID %>")._localization.Add;
  var length = text.length * 6;
  var x = length + "px";
  $(".ruAdd").css("width", x);
 }
</script>

Thanks,
Shinu.
Tags
Upload (Obsolete)
Asked by
Ben
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Ben
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or