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

RadTextBox New Line Display Issue in IE

1 Answer 17 Views
Input
This is a migrated thread and some comments may be shown as answers.
jlj30
Top achievements
Rank 2
jlj30 asked on 20 May 2014, 02:14 PM
Hi,

I have numerous multiline RadTextBox controls that are not displaying a new line.
I have no problems with Firefox or Chrome.

Let me make it clear that I CAN enter new lines into these fields and they display fine at that point in time.
It's only after I save the record and subsequently open it again (in a RadWindow) that the carriage returns are not honoured.
I am retrieving the data using a web service, and updating the field using the following statement:

$find("<%=txtDesc.ClientID%>").set_value(note);

The value is obviously being stored in the database correctly since Firefox and Chrome display the content correctly.

Here's the declaration of the textbox:

<telerik:RadTextBox ID="txtDesc" MaxLength='<%# (int)Session["MaxMultiLineSize"] %>'
                                runat="server" Width="450px" Rows="7" TextMode="MultiLine" onkeydown="KeyDownMultiLine(this,event)"
                                ToolTip="Provide a detailed description for this Note" Enabled='<%# (Boolean)Session["EditProcess"] %>'>
                            </telerik:RadTextBox>

In case you're wondering the onkeydown handler simply enables my Save button if the user makes any changes to this control.  I tried removing it just in case it might have something to do with the problem, but the incorrect behaviour continued.

Any suggestions on how to get this to work properly.

Thanks in advance.

Jim

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 23 May 2014, 09:10 AM
Hi Jim,

I tried replicating the behavior you describe, however I was unable to. I am attaching a sample project I used for testing. The sample includes a RadWindow and a RadTextBox in it. The value for the RadTextBox is set to some sample text.

I tested the project with Internet Explorer, Firefox and Chrome and the behavior is similar on my end - the new lines are shown as expected. Would you give the project a try and let me know if it works on your end as well? Could you describe what needs to be changed in the sample in order for the problematic behavior to be replicated?

Regards,
Viktor Tachev
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.

 
Tags
Input
Asked by
jlj30
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Share this question
or