I want to wrap truncate text of header if goes outside of header width area. How to Wrap Text in Column Header?
If header is too long then it should display
1. "Long Header Te.." (No wrapping and text trimming support.)
2. "Long Header
Text" (Wrapping and setting into next line)
Below is the Xaml code for column mentioned:
<telerikGrid:DataGridTextColumn PropertyName="Country" Header="Long Header Text" SizeMode="Fixed" Width="100" />
I tried another solution mentioned below, but while dragging this column to Grouping Panel it throws exception - "System.Runtime.InteropServices.COMException: No installed components were detected."
<telerikGrid:DataGridTextColumn PropertyName="Country">
<telerikGrid:DataGridTextColumn.Header>
<TextBlock>
<TextBlock.Inlines>
<Run Text="Access"/>
<LineBreak/>
<Run Text="cat."/>
</TextBlock.Inlines>
</TextBlock>
</telerikGrid:DataGridTextColumn.Header>
</telerikGrid:DataGridTextColumn>