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

need help getting new line in textbox

2 Answers 3121 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
No
Top achievements
Rank 1
No asked on 21 Aug 2013, 01:08 AM
need help getting new line in textbox

I am using the 2013 asp.net mvc report control and am having trouble getting the textbox to show up.

I have this at the moment.
            this.someDataTextBox.Value = "=Fields.Name\r\nFields.Company";

This is based my understanding from the documentation saying to just add a ctrl-enter in the textbox.
I tried adding "\n\r" and several other things based on the posts here.
Like this.
            this.someDataTextBox.Value = "=Fields.Name + \r\n + Fields.Company";

What am I missing?

2 Answers, 1 is accepted

Sort by
1
Peter
Telerik team
answered on 23 Aug 2013, 11:51 AM
Hello,

In order to set new line with expression you have to include the new line characters in string literal. For example in expression editor:
=Fields.Name+"
"+Fields.Company


Another option is with Embedded Expressions. For example:
{Fields.Name}
{Fields.Company}


Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Javier
Top achievements
Rank 1
answered on 27 Aug 2015, 08:29 PM

This is what I was looking for.

 

Thanks

Tags
General Discussions
Asked by
No
Top achievements
Rank 1
Answers by
Peter
Telerik team
Javier
Top achievements
Rank 1
Share this question
or