RadTextBox Multiline - 100% Height not working

2 posts, 0 answers
  1. Steele
    Steele avatar
    96 posts
    Member since:
    Mar 2008

    Posted 01 Feb 2011 Link to this post

    Hi All,
    I am trying to get a Multiline RadTextBox to correctly size to 100% height. It seems that it ignores my height requirements and goes solely by the Row property (which I can't seem to disable).
    This does not suit my variable layout.
    Can you please describe a way to achieve my goal?
    Thanks,
    Steele.
  2. alekhya
    alekhya avatar
    8 posts
    Member since:
    Feb 2011

    Posted 01 Feb 2011 Link to this post

    Hello steele
    I to faced same problem in setting width and height of radtextbox .I got it solved by using  
    Fallowing JavaScript and css
    <script type="text/javascript">
        
         
     
        function RemoveWidth(sender, args)
        {
            //remove only the width style from the inline style collection
            sender._originalTextBoxCssText = sender._originalTextBoxCssText.replace(/(^|[^-])width\s?:\s?[\w|\.]+\s?;/i, "$1");
            sender.updateCssClass();
        }
     
     
        </script>
    .RadInput .RadTextBox
    {
         font-weight: normal;
         border:1px solid #000;
         font-family: Verdana;
         font-size:9pt;
         width : 60%;
         float:left;
         background-color:Black;
         
        }
Back to Top