Localized text does not cause buttons to resize

Thread is closed for posting
4 posts, 0 answers
  1. Ben
    Ben avatar
    7 posts
    Member since:
    Jun 2008

    Posted 11 Jun 2012 Link to this post

    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?
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 13 Jun 2012 Link to this post


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

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

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

    Hope this helps!
  3. DevCraft R3 2016 release webinar banner
  4. Ben
    Ben avatar
    7 posts
    Member since:
    Jun 2008

    Posted 08 Aug 2012 Link to this post

    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?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Aug 2012 Link to this post

    Hi Ben,

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

    <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);

Back to Top