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

RowDetails and Text Wrapping issue

1 Answer 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 25 Oct 2011, 03:00 PM
Hi,

I've the same issue described in http://www.telerik.com/community/forums/wpf/gridview/rowdetails-and-text-wrapping.aspx
If I download the sample project attached ticketid-282071-horizontalvirtualizationandwidth.zip it behaves like it should behave but it uses a very old version of telerik. Putting the latest stable and internal telerik assemblies it behaves really strange. The first time when I load the app the text is wrapped, if I resize the window it loses the text wrap and the annoyng horizontal scrollbar appears. Is there any solution to wrap the text correctly in the RowDetailsTemplate. It's a very common scenario and it's seems to be broken in the latest versions.

Thanks for your answer.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 28 Oct 2011, 03:03 PM
Hello Jean,

 RadGridView's RowDetails are measured with infinity, which leads to ignoring properties such as TextTrimming, TextWrapping etc. What you may do is to set the Width/ MaxWidth either of the Grid or of the TextBlock element.

If you do not want to set a fixed size for the row details, you may bind its Width property to the one of the parent grid. Please refer to this forum thread where you could find a sample project for the suggested solution.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Jean
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or