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

TextMode/Rows attributes do not work

1 Answer 80 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 16 Feb 2012, 07:17 PM
Hello, Telerik Team.

I am developing a web application with Visual Studio 2010 and RadControls for ASP.NET AJAX Q1 2012.

The following RadTextBox control belongs to a form displayed in a RadDock control:
<tr>
    <td align="right">
        <asp:Label ID="label1" runat="server">Description:</asp:Label>
    </td>
    <td>
        <telerik:RadTextBox ID="description" runat="server" TextMode="MultiLine" Rows="2" ReadOnly="true" Width="250px"></telerik:RadTextBox>
    </td>
</tr>

The attached file IE.png shows how the control is displayed in Internet Explorer version 8.0.6001.18702.
Since the content of the text box is equal to "one\r\ntwo\r\n\three", the vertical scroll bar is displayed accordingly.

The problem happens with Firefox version 10.0.1 (please, see attachment Firefox.png).
Attributes TextMode and Rows appear to be ignored, since the content is fully diplayed with no vertical scroll bar.

How can this problem be solved?

Thank you in advance.
Paulo

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 21 Feb 2012, 11:49 AM
Hi Paulo,

This behavior appears to be caused by a bug in Firefox with applying the Rows attribute of a HTML textarea element. It is examined in your case because the RadTextBox control is rendered as textarea. The bug is logged and can be checked here. We will consider addressing this behavior, although I cannot confirm that it will be fixed, as the problem is mostly related to the rendering of the textarea element under Firefox.

Don't hesitate to contact us again if you run into more difficulties.

Greetings,
Slav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Dock
Asked by
Paulo
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or