adjusting radtextbox height when expanding radwindow

2 posts, 0 answers
  1. Josh
    Josh avatar
    7 posts
    Member since:
    May 2012

    Posted 31 May 2012 Link to this post

    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?

  2. Vasil
    Vasil avatar
    1642 posts

    Posted 05 Jun 2012 Link to this post

    Hi Josh,

    For multiline textbox you could use this solution:

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

    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.
Back to Top