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

String table field with new lines not expanding vertically

3 Answers 246 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 02 Oct 2012, 01:09 PM
 

Posted 19 hours ago (permalink)

Hi,

I have a table with a text field, order notes.  This text field is from a multiline textbox.  There will be \r\n in my data.  The textbox is not expanding vertically when there are new lines.  If there text without line breaks, it expands as expected.  If there are more lines than the row is getting for wrapping, the row is overwriting the space for the rows below it.  It properly shows the new lines while in the space expanded into by other wrapping fields.

I have the CanGrow property set to true.  TextWrapping is also set to true.

How do I get the row to expand vertically to show all of my notes field in one row?

Thank you for your help,

James Trimmier

3 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 02 Oct 2012, 06:38 PM
Partial Solution: Quit using a table and use a series of text boxes for the data.  Now some show all the lines, some show 5 or 6 before truncating, some show only 2.
0
Steve
Telerik team
answered on 05 Oct 2012, 08:19 AM
Hello James,

There was a similar problem that would be fixed for the upcoming Q3 release. For the time being, please try using HtmlTextBoxes instead of TextBoxes. If necessary you can replace the \r\n with <br>.

If this does not help, we would appreciate if you open a support ticket and attach a sample report that exhibits the problem and we would advise you accordingly.

Regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
James
Top achievements
Rank 1
answered on 05 Oct 2012, 04:05 PM
The field I was trying to deal with had a max of 1000 characters, so the solution I went with was to strip out the new lines, reduce the font size, and set the order note text box to be big enough for the max data.  Then i set can shrink to be true and set the details size to be the height of the first line + the current size of the order notes field.  This isn't an optimal solution, but now order notes up to the database size limit are showing.

Thanks for answering,

James
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Steve
Telerik team
Share this question
or