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

adjusting radtextbox height when expanding radwindow

1 Answer 131 Views
Input
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 31 May 2012, 09:54 PM
I have a radtextbox in a radwindow and I want to be able to expand the height of the textbox as the user resizes the radwindow. I have the textbox set up like so:

<telerik:RadTextBox runat="server" ID="configData" TextMode="MultiLine" Width="100%" Height="300px"/>
When I adjust the width of the window the width of the textbox will also expand so my first thought was to set the height to a percentage value however this did not work.

Is there a way to achieve this functionality?

Thanks

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 05 Jun 2012, 10:17 AM
Hi Josh,

For multiline textbox you could use this solution:

<head runat="server">
    <title></title>
    <style type="text/css">
        .riSingle.MyClass, .riTextBox
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <div>
        <div style="height: 300px">
            <telerik:RadTextBox runat="server" ID="configData" TextMode="MultiLine" Width="100%" WrapperCssClass="MyClass" Rows="0"/>
        </div>
    </div>
    </form>
</body>


Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Input
Asked by
Josh
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or