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?

    Thanks
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 05 Jun 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top