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

MultiLine TextBox - New Line issue

1 Answer 344 Views
Input
This is a migrated thread and some comments may be shown as answers.
David Beck
Top achievements
Rank 1
David Beck asked on 02 Jun 2010, 05:28 PM
I am using the RadTextbox with Multiline mode. I cant seem to get the EmptyMessage to accept new line feeds I have tried this

<telerik:RadTextBox ID="txtDisplayName" runat="server" Text='<%# Bind( "Testimonial_Name") %>' TextMode="MultiLine" Rows="3" Columns="50" MaxLength="500" EmptyMessage="(What you place will be displayed as the name) \r\n  Suggestion: Name, company name and position, city, state.">  
                                </telerik:RadTextBox> 
 
AND THIS  
 
<telerik:RadTextBox ID="txtDisplayName" runat="server" Text='<%# Bind( "Testimonial_Name") %>' TextMode="MultiLine" Rows="3" Columns="50" MaxLength="500" EmptyMessage="(What you place will be displayed as the name) \\r\\n  Suggestion: Name, company name and position, city, state.">  
                                </telerik:RadTextBox> 

Neither seems to break the Empty Message to a new line. any ideas?

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 02 Jun 2010, 09:29 PM
Hello Loren,

You can insert a line break using the html representation of the line feed character:
&#10;

EmptyMessage="(What you place will be displayed as the name) &#10;
  Suggestion: Name, company name and position, city, state." ...

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Input
Asked by
David Beck
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or