I have a Grid which contains a detail Grid. When I click on "expand" icon to expand the detail Grid (its width may be greater than its parent's width), I want Text in the Detail Grid must be on the second line if it exceeds the parent's width) but the detail Grid always extend its Width automatically.
Please let me know how can I do this.
Thanks in advance.
6 Answers, 1 is accepted
Try setting the TableLayout property of the MasterTableView to Fixed and let me know if it helps to resolve your issue.
Regards,
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

The Width of Detail Grid is OK now but some texts are lost, it does not go to the second line.
This is my detail grid. Do you have any idea?
<
telerik:RadGrid
ID
=
"gridDetail"
runat
=
"server"
AutoGenerateColumns
=
"false"
Width
=
"99%"
ShowHeader
=
"false"
BorderStyle
=
"Solid"
BackColor
=
"White"
OnNeedDataSource
=
"gridDetail_NeedDataSource"
>
<
ClientSettings
EnableAlternatingItems
=
"false"
></
ClientSettings
>
<
MasterTableView
TableLayout
=
"Fixed"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"DetailText"
ItemStyle-Wrap
=
"true"
>
<
ItemStyle
BorderStyle
=
"Solid"
BorderColor
=
"Gray"
/>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Browsers wrap text by default. If this does not happen in your case, then you are either using too long words (which browsers do not break by default), or there is something else, which prevents it.
However, if you want to break long words,you can use the following CSS property:
http://www.brunildo.org/test/IEbreak-word.html
Kind regards,
Pavlina
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

I found that my Text was formatted with HTML blanks as below :
.....
FEATURES : Phuc PHAM 2011/07/29 12:28<br> Planned start on 7/29/2011 at 12h28 / Authorized late (start) 00mn / Duration 120mn / Authorized Suppl. delay 00mn Do you have any suggestion to solve this issue ? The format must be done like that (Text from DB, for WinForm application "/t" or "/n" is used but for Web I used " " and "</br>") to make sure the indent or new line for the paragraph). Thanks for your help.
Could you please send us a live URL or a small project which demonstrates the issue? Thus we will be able to inspect it locally and advice you further.
All the best,
Pavlina
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

When I do not use Replace(" ", " "). It means the string does not contain continuous characters, it's OK.
Thanks for your support.