Multiline Not working

8 posts, 0 answers
  1. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 20 Jun 2014 Link to this post

    I am using the current version of the controls. RadTextBox is being styled properly except when it is TextMode="multiLine". It is not resizing to the number of rows and does not show that it is resizable. I am also using bootstrap but this doesn't seem to have an effect otherwise. Happens in all browsers.

    If I switch to a <asp:textbox> there is no problem but I want to use the rad control. 

    <telerik:RadTextBox ID="rtbComments" runat="server" MaxLength="2000" TextMode="multiLine" Width="100%" class="form-control">
    </telerik:RadTextBox>

    Thanks.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Jun 2014 in reply to Darren Link to this post

    Hi Darren,

    When you set the Width="100%", the RadTextBox will occupy the containers 100% width. Then to have the RadTextBox resizable, you have to set the property Resize="Both", by default its none.

    ASPX:
    <telerik:RadTextBox ID="rtbComments" runat="server" MaxLength="2000" TextMode="MultiLine" Resize="Both">
    </telerik:RadTextBox>

    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 23 Jun 2014 Link to this post

    Hi Princy, When I used Resize="Both" it allows the user to resize the box, but it does not set the box to the correct number of rows. It still only displays 1 row even though I have changed it to display 4 rows. Thanks.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2014 in reply to Darren Link to this post

    Hi Darren,

    The Rows property  sets the number of rows displayed in a multiline text box. The default is 0, which displays a two-line text box. Please do the following modification in your code snippet.

    ASPX:
    <telerik:RadTextBox ID="rtbComments" runat="server" MaxLength="2000" TextMode="MultiLine"
        Rows="4" Resize="Both">
    </telerik:RadTextBox>

    Thanks,
    Princy.
  6. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 24 Jun 2014 in reply to Princy Link to this post

    Hi Princy, this is what I tried and it only shows 1 row instead of 4.
  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 26 Jun 2014 Link to this post

    Hi Darren,

    I tried to replicate the problematic behavior on my end using the latest official release of the controls but to no avail. The same approach works correctly and the MultiLine TextBox is rendering the number of rows set.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 26 Jun 2014 in reply to Maria Ilieva Link to this post

    If you try with MetroTouch screen you should see that the # of rows does not work. Is there a way to make that work?

    Thanks.
  9. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Jul 2014 Link to this post

    Hi Darren,

    You are correct that the MultiLine TextBox with MetroTouch skin set does not work properly in this scenario and it appears to be a bug that is already logged in our tracking system.
    I increase the bug priority and our Dev team will do the best to fix this issue as soon as possible.

    Excuse us for any inconvenience this bug may lead.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017