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

RadTextBox Multiline - 100% Height not working

1 Answer 143 Views
Input
This is a migrated thread and some comments may be shown as answers.
Steele
Top achievements
Rank 1
Steele asked on 01 Feb 2011, 07:56 AM
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.

1 Answer, 1 is accepted

Sort by
0
alekhya
Top achievements
Rank 1
answered on 01 Feb 2011, 12:14 PM
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;
     
    }
Tags
Input
Asked by
Steele
Top achievements
Rank 1
Answers by
alekhya
Top achievements
Rank 1
Share this question
or